PDA

View Full Version : Animations and locked bones


Enlil
06-17-2010, 10:19 AM
Hello,

If you are playing an animation but have a locked bone (such as the head to follow an object), is there a way to tell what euler the animation would have applied to the bone had it not been locked?

Thanks,
Christian

Jeff
06-17-2010, 03:45 PM
In a dictionary you could record the orientation of that bone at each point in time through it's cycle when it's unlocked. Then, once it's locked and you want to find out where it would be unlocked call <node3d:avatar>.getAnimationTime to get the current time of the animation or animation cycle. With that time value you could look up the corresponding orientation value in the dictionary.