View Single Post
Old 05-08-2009, 03:24 AM   #4
grim001
requires vJass
 
grim001's Avatar


Code Moderator
 
Join Date: Nov 2006
Posts: 1,540

Submissions (10)

grim001 is just really nice (277)grim001 is just really nice (277)

Send a message via AIM to grim001
Default

Quote:
Originally Posted by Bobo_The_Kodo
One problem!

The SetUnitLookAt uses terrain height ...

so on a hill this will face wrong pitch

This is wrong, terrain heights only exist in a range of several thousand. When you multiply the X and Y coordinates by 1,000,000 each, the incorrectness of the Z orientation would become completely negligible.

And that's if what you're saying were true, but double check the function... the unit is looking at itself with an offset, meaning it already has its own Z height factored in.

It works fine when I use it in my physics engine.
grim001 is offline   Reply With Quote