forked from mtcontrib/maidroid
Replace deprecated setyaw method by set_yaw
This commit is contained in:
parent
59fcc6875e
commit
003b950abc
@ -135,7 +135,7 @@ end
|
|||||||
-- maidroid.maidroid.set_yaw_by_direction sets the maidroid's yaw
|
-- maidroid.maidroid.set_yaw_by_direction sets the maidroid's yaw
|
||||||
-- by a direction vector.
|
-- by a direction vector.
|
||||||
function maidroid.maidroid.set_yaw_by_direction(self, direction)
|
function maidroid.maidroid.set_yaw_by_direction(self, direction)
|
||||||
self.object:setyaw(math.atan2(direction.z, direction.x) - math.pi / 2)
|
self.object:set_yaw(math.atan2(direction.z, direction.x) - math.pi / 2)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- maidroid.maidroid.get_wield_item_stack returns the maidroid's wield item's stack.
|
-- maidroid.maidroid.get_wield_item_stack returns the maidroid's wield item's stack.
|
||||||
|
Loading…
Reference in New Issue
Block a user