Compare commits

..

1 Commits

Author SHA1 Message Date
64ccb6950e Replace deprecated getyaw method by get_yaw 2021-04-04 17:18:22 +02:00

View File

@ -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