Game Development Community

About the shapebase new setThreadTimeScale method

by Steven Chiu · in Torque 3D Professional · 09/14/2009 (1:26 pm) · 3 replies

I want to use the new shapebase's setThreadTimeScale method to speed up or slow down my animations without success. So I'm wondering what's the usage of this method? BTW I used the playthread command for my animations.

#1
09/14/2009 (3:26 pm)
It works for me:

datablock StaticShapeData(AAA)
{
   category = .........;
   shapeFile = .......;
};

function AAA::onAdd(%this,%obj)
{ 
  %obj.playThread(0,"seq");
  %obj.setThreadTimeScale(0,2);//speed up twice
}
#2
09/14/2009 (9:43 pm)
It works like a charm! Thanks for sharing this.
#3
04/07/2010 (2:27 pm)
Is there a way to set the time scale of a thread before an animation is being played?