How to get the position of a mount point?
by BartCollege (#0001) · in Torque Game Engine · 06/26/2007 (4:12 pm) · 1 replies
Hello!
I'm am wondering how to obtain the position of a mount node during an animaton.
By looking trough the forums i found out that i can get the position of a node by using something like :
%nodeTransform = obj.getSlotTransform(2);
Problem is that the position returned does not seem to be updated while an animation is running.
Let's say that i have a character swinging a baseball club and I have a mount point on the hand.
If I use the getSlotTransform() function while the animation is looping the position returned is always the same. The returned position seems to be the position the mount have in the unanimated dts file.
Someone has an idea?!
Thanks!! :)
I'm am wondering how to obtain the position of a mount node during an animaton.
By looking trough the forums i found out that i can get the position of a node by using something like :
%nodeTransform = obj.getSlotTransform(2);
Problem is that the position returned does not seem to be updated while an animation is running.
Let's say that i have a character swinging a baseball club and I have a mount point on the hand.
If I use the getSlotTransform() function while the animation is looping the position returned is always the same. The returned position seems to be the position the mount have in the unanimated dts file.
Someone has an idea?!
Thanks!! :)
Associate Jeff Faust
Faust Logic, Inc.