Game Development Community

Ho do you change Animation Blend Time

by Rob McNaughton · in Torque 3D Beginner · 07/26/2014 (1:54 pm) · 3 replies

Hi,

In the shape Editor there is a field "transition lasts 0.5 seconds". I want to make the default of the blend between anims much shorter. 0.15 looks much better to me but I cant seem to find where this is set for a player character. Can anybody point me to where I can changes this for my project?

About the author

Lead Technical Artist for Blizzard's "Team 1" working on StarCraft II. Rob has tinkered with torque for a long time and has yet to make something to show. Soon...


#1
07/26/2014 (4:25 pm)
Who you callin' a ho?

I tested it, just double click the textbox in the "Advanced properties" window under the "threads" tab, and edit the number, however, know that the death animation(which hopefully gets replaced with ragdolls) is just one frame and the animation is the transition into that pose, so if the transition time is set to .15, it'll animate comically fast(I tried .3 and that looks alright).
#2
07/26/2014 (8:30 pm)
I think what you're looking for is:

// Amount of time if takes to transition to a new action sequence.
static F32 sAnimationTransitionTime = 0.25f;

In T3D/player.cpp. I'm not sure why it isn't exposed to script, I was trying to find this earlier as well. There could be another way to set it up on the shape but I'm unaware.
#3
07/27/2014 (2:28 pm)
Perfect! worked like a charm. I see there is a separate LandAnim timing. In the end I dialed in a snappy 0.1 sAnimationTransitionTime which feels right for my game.

Sorry about calling you all a ho!