forked from mtcontrib/maidroid
Compare commits
1 Commits
003b950abc
...
64ccb6950e
Author | SHA1 | Date | |
---|---|---|---|
64ccb6950e |
@ -122,7 +122,7 @@ end
|
||||
-- maidroid.maidroid.get_look_direction returns a normalized vector that is
|
||||
-- the maidroid's looking direction.
|
||||
function maidroid.maidroid.get_look_direction(self)
|
||||
local yaw = self.object:getyaw()
|
||||
local yaw = self.object:get_yaw()
|
||||
return vector.normalize{x = -math.sin(yaw), y = 0.0, z = math.cos(yaw)}
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user