AligntoVector on a B3d animated bone

Blitz3D Forums/Blitz3D Programming/AligntoVector on a B3d animated bone

FlagDKT(Posted 2006) [#1]
I have an animated character and I want to align the head (a bone) to the camera smoothly, while he's performing other b3d animations...
How?


Matty(Posted 2006) [#2]
You would need to rotate/align/position the head bone after the updateworld command otherwise the head bone will remain in the position specified by the animation sequence.


jfk EO-11110(Posted 2006) [#3]
I'd suggest to use a dummy pivot at the heads position with align to vector, then rotate the head using entitypitch etc. from the pivot, after each UpdateWorld as Matty suggested.

Tho, you may have to prevent the head from turning around more than about 100°.


FlagDKT(Posted 2006) [#4]
nice idea ;)