Replace deprecated getyaw method by get_yaw

This commit is contained in:
bri cassa 2021-04-04 17:18:22 +02:00
parent 003b950abc
commit 64ccb6950e
1 changed files with 1 additions and 1 deletions

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