From 64ccb6950ebda562a6fc0e808e250c5a0bb70bf2 Mon Sep 17 00:00:00 2001 From: sys4 Date: Sun, 4 Apr 2021 17:18:22 +0200 Subject: [PATCH] Replace deprecated getyaw method by get_yaw --- maidroid/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maidroid/api.lua b/maidroid/api.lua index addcd0f..cc38940 100644 --- a/maidroid/api.lua +++ b/maidroid/api.lua @@ -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