Why you use distance sqared vs regular distance (magnitude): To calculate actual distance you have to use square root operation - very slow. Dealing with distance squared is a bit faster - but you can't use distance squared in all cases, sometimes you need the actual distance. Google for "euclidian distance" and you should find plenty of info about it (It's pythagorean theorem extended to multiple dimensions).
Great! thank You!
riotbreaktemper 1 month ago
thankssss :)
Unity3dDino97 3 months ago
Its driving me crazy!!!! I'm doing everything on your tuto but the missile won't move to target. It just gets stuck in front of me.... Any idea?
I double checked all your script.. can't find the issue
jdemnard 4 months ago
thanks for the tutorial! Keep it up!
lolagain32323 6 months ago
I cant see it
the code
vardo14j 9 months ago
@vardo14j
thats why its uploaded in 720p
mintendac 9 months ago
I cant see it
vardo14j 9 months ago
Why you use distance sqared vs regular distance (magnitude): To calculate actual distance you have to use square root operation - very slow. Dealing with distance squared is a bit faster - but you can't use distance squared in all cases, sometimes you need the actual distance. Google for "euclidian distance" and you should find plenty of info about it (It's pythagorean theorem extended to multiple dimensions).
Great Tut though!
ddoubledeuce 10 months ago