forked from VoxeLibre/VoxeLibre
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
|
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 New Issue