animated 3d model head turn on mouse move

Blitz3D Forums/Blitz3D Programming/animated 3d model head turn on mouse move

NotAGamer(Posted 2015) [#1]
Is is possible to make an animated 3d model turn its head via mouse control?

something like:

while running(play run animation ) then on mouse move left turn head to left...


Matty(Posted 2015) [#2]
Yes.

You need to do the rotation after the update world command though.

Simply find the 'neck' or 'head' bone (findChild), then after Updateworld use turnentity....


NotAGamer(Posted 2015) [#3]
thanks! model turn its head 180 degrees... i have to give it some limits but it works! i'm glad forum members in blitz3d are more mature and helpful that other forums...