Game Development Community

Why are my animations playing 2x as fast in torque?

by Highlander · in Artist Corner · 05/14/2007 (1:00 pm) · 3 replies

My animations in torque seem to be at twice the speed of my animations in max. I tried changing the frames in the sequence object in max but it doesnt seem to make a difference. How do you get the playback speed in torque to match that in max?

#1
05/14/2007 (1:05 pm)
A quick search gave me this thread:
http://www.garagegames.com/mg/forums/result.thread.php?qt=22863

Quote:You have to make sure the 'use ground transform' checkbox is checked in the sequnece exporter. additionally, the animation scaling is capped in code. It is exposed to script, but does not exist in any of the existing scripts (except the one from our pack, which also contains more useful information about how the players work.

adding

maxTimescale = ;

to the player datablock will allow you to uncap it.. setting it to somethig like 5 will allow the animation to scale with the speed set in the datablock.

might help?
#2
05/14/2007 (1:18 pm)
Actually no, i found derk's thread already. the exporter i have says "ignore ground transform" which is not checked; i assume they switched it around since that old post. It seems you no longer need that in the code. The problem turned out to be that the maxspeed set in the player.cs file on the server was too high, and so the engine was scaling the animations to match the high speed. I reduced maxForwardSpeed to half its original speed and it seems correct now.
#3
05/15/2007 (6:39 am)
Oh good that was easy.