Game Development Community

t2dShape3D Play Animation in a mounted object

by Alexandre Ribeiro de Sa · in Torque Game Builder · 11/17/2010 (7:05 am) · 1 replies

Hello everyone.

I have a t2dShape3D character with a mounted object with him, a gun..
My question is if someone know how can I play the gun animation in a different thread...


All the best!
Alexandre

#1
11/18/2010 (10:58 pm)
bool pskActor3D::setMountedSequence( U32 node, const char* sequence )
{
	S32 seq = mAnimationPuppet->getMountedShape(node)->mShapeInstance->getShape()->findSequence( StringTable->insert( sequence ) );
	mAnimationPuppet->getMountedShape(node)->mShapeInstance->setSequence(mAnimationPuppet->getMountedShape(node)->mShapeThread, seq, 0.0f);
}

How can you play a animation in a mounted shape (I'm using PSK)