mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-09-29 00:21:53 +02:00
Fix mobs with horrizontal heads having inverted yaw when attacking
This commit is contained in:
parent
d0d7facfd7
commit
e5ff73af3a
@ -3690,7 +3690,7 @@ local mob_step = function(self, dtime)
|
||||
if self.head_yaw == "y" then
|
||||
self.object:set_bone_position(self.head_swivel, vector.new(0,self.bone_eye_height,self.horrizonatal_head_height), vector.new(mob_pitch, mob_yaw, 0))
|
||||
elseif self.head_yaw == "z" then
|
||||
self.object:set_bone_position(self.head_swivel, vector.new(0,self.bone_eye_height,self.horrizonatal_head_height), vector.new(mob_pitch, 0, mob_yaw))
|
||||
self.object:set_bone_position(self.head_swivel, vector.new(0,self.bone_eye_height,self.horrizonatal_head_height), vector.new(mob_pitch, 0, -mob_yaw))
|
||||
end
|
||||
else
|
||||
if self.head_yaw == "y" then
|
||||
|
Loading…
Reference in New Issue
Block a user