• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 04:44
CEST 10:44
KST 17:44
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL19] Finals Recap: Standing Tall6HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL41Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
Statistics for vetoed/disliked maps Esports World Cup 2025 - Final Player Roster The SCII GOAT: A statistical Evaluation How does the number of casters affect your enjoyment of esports? Weekly Cups (June 23-29): Reynor in world title form?
Tourneys
RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo) FEL Cracov 2025 (July 27) - $8000 live event HomeStory Cup 27 (June 27-29)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Help: rep cant save Player “Jedi” cheat on CSL Flash Announces Hiatus From ASL [ASL19] Finals Recap: Standing Tall BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine Trading/Investing Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 556 users

Looking for a Unity mentor

Blogs > Qzy
Post a Reply
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-06-13 07:41:19
June 13 2011 07:40 GMT
#1
Hi!

I'm trying out the Unity engine (www.unity3d.com) to test out some small ideas - but I keep running into simple problems. I need a helping hand when it happens . Is anyone experienced in Unity and ready to take a newbie under his wings?

I'm pretty experienced Java, so the programming part shouldn't be the biggest problem.

-Qzy.

TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
ChronoCat
Profile Blog Joined October 2010
266 Posts
June 13 2011 07:57 GMT
#2
What aspect of Unity is giving you problems? And what language are you writing scripts in?
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-06-13 15:13:11
June 13 2011 15:12 GMT
#3
I think I'll write it in javascript?

Right now I have problems with the "LookAt" method:

http://www.jonnielsen.net/WebPlayer.html

The turret should aim at the worm, not go crazy .

The script is super simple:

var LookAtTarget:Transform;
function Update () {
transform.LookAt(LookAtTarget);
}
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
ChronoCat
Profile Blog Joined October 2010
266 Posts
Last Edited: 2011-06-13 18:05:39
June 13 2011 18:04 GMT
#4
Okay first of all I'm by no means an expert at Unity, nor am I a good programmer. But I've had a bit of experience using Unity before so I'll just post what I know...

I've never actually used the LookAt function prior to this, but I just tried it out real quick in Unity and I managed to get a similar looking turret to aim at a player-controlled cube using the exact same script you posted.

So I doubt it's a problem with that script itself. I'm not sure how your worm works, but I'm guessing it's from a Unity tutorial of some sort (since it looks familiar to me)? My guess is that it has something to do with the worm itself because I'm not sure how it's working or your turret's transforms aren't right or something. What are you setting the LookAtTarget variable to? Perhaps the turret isn't pointing at what it should be? What puzzles me the most is that the turret is translating as well, even though it should just be rotating... Like it's got the wrong center of rotation or something.

I guess the only point that I'm able to put forth right now is to double check and make sure everything's been set correctly, although I'm sure you've done that already lol


XDawn
Profile Blog Joined February 2004
Canada4040 Posts
June 13 2011 18:23 GMT
#5
Awesome, I'm soon going to learn this in my classes too. Not to hijack your thread but is there a place where you can learn for people starting out with this program? Good Websites? Pre-req's I should have?
Use it or lose it
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
June 13 2011 18:50 GMT
#6
I solved the problem . The turret were placed at bad positions inside an empty game object - so it did move around, but around an invisible point in space.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
June 13 2011 18:51 GMT
#7
On June 14 2011 03:23 XDawn wrote:
Awesome, I'm soon going to learn this in my classes too. Not to hijack your thread but is there a place where you can learn for people starting out with this program? Good Websites? Pre-req's I should have?


Try youtube "Tornado Twins".. They got some tutorials up. . If you want to share some ideas, you can get my msn or skype.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
June 13 2011 18:53 GMT
#8
The webplayer now shows the new game With turret looking at worm - and worm able to shoot by pressing space.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
ChronoCat
Profile Blog Joined October 2010
266 Posts
Last Edited: 2011-06-13 18:56:09
June 13 2011 18:55 GMT
#9
On June 14 2011 03:23 XDawn wrote:
Awesome, I'm soon going to learn this in my classes too. Not to hijack your thread but is there a place where you can learn for people starting out with this program? Good Websites? Pre-req's I should have?


Unity's site has a bunch of useful tutorials, although some are a little bit too advanced, esp. for beginners. This site here was really helpful to me when I first started:

http://www.unity3dstudent.com/

Has a bunch of tutorial videos (under "Modules") that teach the basic stuff! Probably'll take you at most a couple of hours to go through all of them, and you'll definitely get a good idea of Unity once you do.

On June 14 2011 03:50 Qzy wrote:
I solved the problem . The turret were placed at bad positions inside an empty game object - so it did move around, but around an invisible point in space.


I figured just as much, the center of rotation seemed out of place. But I didn't bring up the possibility of an empty game object, simply because I didn't think a simple sphere + cylinder combination of a turret would have any reason to be in an empty game object in the first place. Good on ya then!
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-06-13 20:01:34
June 13 2011 19:26 GMT
#10
On June 14 2011 03:23 XDawn wrote:
I figured just as much, the center of rotation seemed out of place. But I didn't bring up the possibility of an empty game object, simply because I didn't think a simple sphere + cylinder combination of a turret would have any reason to be in an empty game object in the first place. Good on ya then!


The reason for putting it in an empty object, is to only have 1 script (LookAt) on one object, in stead of two . How much have you been playing around with unity? I would love to poke you with a stick when I run into more problems .
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
ChronoCat
Profile Blog Joined October 2010
266 Posts
June 14 2011 02:32 GMT
#11
On June 14 2011 04:26 Qzy wrote:
Show nested quote +
On June 14 2011 03:23 XDawn wrote:
I figured just as much, the center of rotation seemed out of place. But I didn't bring up the possibility of an empty game object, simply because I didn't think a simple sphere + cylinder combination of a turret would have any reason to be in an empty game object in the first place. Good on ya then!


The reason for putting it in an empty object, is to only have 1 script (LookAt) on one object, in stead of two . How much have you been playing around with unity? I would love to poke you with a stick when I run into more problems .


I don't think you'd need to use an empty game object for that. Supposing your "turret" consists of a sphere object and cylinder object like I think it does, you'd just need to attach the script to the sphere, and then parent the cylinder to the sphere by dragging the cylinder object in the project hierarchy into the sphere object. The cylinder should follow the sphere's transformations exactly as long as you positioned it correctly I think.

I've only used Unity (using Javascript) for about half a year for a couple of uni projects that weren't too complex, so if you run into a simple problem, I'd probably be able to help. If it's a bit more involved, though... No guarantees lol. I'm not the best programmer out there and the Unity projects I worked on were pretty simple and took a pretty-brute force approach if I might add. So I'm probably still unaware of how a lot of Unity's functions work.

Regardless, Unity's a pretty fun tool to work with, and I wish you GLHF!

Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
June 14 2011 16:25 GMT
#12
Thanks and thanks for the offer .
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
XDawn
Profile Blog Joined February 2004
Canada4040 Posts
June 15 2011 04:16 GMT
#13
Thanks - I'll PM you for MSN or Skype sooner or later
Hope all worked out for you too
Use it or lose it
Disregard
Profile Blog Joined March 2007
China10252 Posts
Last Edited: 2011-06-15 04:23:06
June 15 2011 04:21 GMT
#14
Hmmm... Think I can use this for architecture(Uni major) modeling and whatnot. I have some experience in Java, not an expert but I think it shouldnt be too difficult.

Any input?

edit: Its only for fun, something to represent productivity until my summer work is over and class resumes again.
"If I had to take a drug in order to be free, I'm screwed. Freedom exists in the mind, otherwise it doesn't exist."
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-06-15 15:09:43
June 15 2011 15:09 GMT
#15
Yeah I'm using it show off artificial intelligence projects.

Currently implementing some of the latest AI .
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Please log in or register to reply.
Live Events Refresh
Next event in 1h 16m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 129
StarCraft: Brood War
Sea 2697
ToSsGirL 733
BeSt 558
actioN 348
Killer 200
GoRush 109
Nal_rA 99
JulyZerg 60
Shinee 53
Mong 36
[ Show more ]
Sharp 27
Noble 23
sSak 14
Bale 8
Sacsri 3
Dota 2
BananaSlamJamma387
XcaliburYe276
League of Legends
JimRising 481
Counter-Strike
shoxiejesuss854
Stewie2K722
Super Smash Bros
Mew2King229
Heroes of the Storm
Khaldor139
Other Games
shahzam1293
ceh9649
Happy288
rGuardiaN73
SortOf29
DeMusliM10
crisheroes0
Organizations
Other Games
gamesdonequick846
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH353
• OhrlRock 50
• LUISG 13
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2100
League of Legends
• Stunt698
Upcoming Events
The PondCast
1h 16m
RSL Revival
1h 16m
ByuN vs Classic
Clem vs Cham
WardiTV European League
7h 16m
ByuN vs NightPhoenix
HeRoMaRinE vs HiGhDrA
Krystianer vs sebesdes
MaxPax vs Babymarine
SKillous vs Mixu
ShoWTimE vs MaNa
Replay Cast
15h 16m
RSL Revival
1d 1h
herO vs SHIN
Reynor vs Cure
WardiTV European League
1d 7h
Scarlett vs Percival
Jumy vs ArT
YoungYakov vs Shameless
uThermal vs Fjant
Nicoract vs goblin
Harstem vs Gerald
FEL
1d 7h
Korean StarCraft League
1d 18h
CranKy Ducklings
2 days
RSL Revival
2 days
[ Show More ]
FEL
2 days
Sparkling Tuna Cup
3 days
RSL Revival
3 days
FEL
3 days
BSL: ProLeague
3 days
Dewalt vs Bonyth
Replay Cast
4 days
Replay Cast
5 days
The PondCast
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.