23 lines
455 B
Lua
23 lines
455 B
Lua
local vector_new = vector.new
|
|
|
|
mobs.do_head_logic = function(self,dtime)
|
|
|
|
--local yaw = self.object:get_yaw()
|
|
|
|
|
|
|
|
--local bone_pos = vector_new(0,5,0)
|
|
|
|
--print(yaw)
|
|
|
|
--local _, bone_rot = self.object:get_bone_position("head")
|
|
|
|
--bone_rot.x = bone_rot.x + (dtime * 10)
|
|
--bone_rot.z = bone_rot.z + (dtime * 10)
|
|
|
|
--self.object:set_bone_position("head", bone_pos, bone_rot)
|
|
|
|
|
|
|
|
--set_bone_position([bone, position, rotation])
|
|
end |