forked from mtcontrib/maidroid
Replace deprecated getyaw method by get_yaw
This commit is contained in:
parent
003b950abc
commit
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user