Game Development Community

how to swap between different run animations?

by Ahsan Muzaheed · in Torque 3D Beginner · 03/22/2012 (12:50 pm) · 1 replies

my models have 2/3 run animations.i want to swap between those run animations considering different circumstances.
any function or tricks to do that?

About the author

Torque 3D enthusiastic since 2010.Have been working in several T3D projects besides of Unreal Engine 4 and Unity 3D. NEED a hand with your project? SHoot me a mail. http://www.garagegames.com/community/forums /viewthread/138437/


#1
03/22/2012 (5:07 pm)
The TSShapeConstructor loads and merges the shape and animations to be used at runtime. Swapping one run sequence for another will mean reloading the shape and merging the new set of animations. This will affect all instances of the specific shape.

You could however, set up run poses in the source (just like crawling, standing, crouching) that use different animations. Then you would need a means of triggering a run-pose change, either by the player or controlled by movement code. I think the T3D 1.2 sprinting enhancement may already do this...