mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Fix mobs with horrizontal heads having inverted yaw when attacking
This commit is contained in:
parent
d0d7facfd7
commit
e5ff73af3a
1 changed files with 1 additions and 1 deletions
|
@ -3690,7 +3690,7 @@ local mob_step = function(self, dtime)
|
||||||
if self.head_yaw == "y" then
|
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))
|
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
|
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
|
end
|
||||||
else
|
else
|
||||||
if self.head_yaw == "y" then
|
if self.head_yaw == "y" then
|
||||||
|
|
Loading…
Reference in a new issue