Game Development Community

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!! :)

About the author

Recent Threads


#1
06/27/2007 (7:11 am)
I believe that the server version of a Player/AIPlayer is only animated in certain situations. Generally, they are not animating. If you are making your call on the server, then it's quite likely that you'll get back the position of the node in the default pose. Unfortunately, I'm not certain what scripting options you have to make the server side model animate when you need it too.