mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
commit
7c67c2c326
1 changed files with 8 additions and 4 deletions
|
|
@ -2269,10 +2269,14 @@ void Player::setState(ActionState state, U32 recoverTicks)
|
||||||
case RecoverState: {
|
case RecoverState: {
|
||||||
if (mDataBlock->landSequenceTime > 0.0f)
|
if (mDataBlock->landSequenceTime > 0.0f)
|
||||||
{
|
{
|
||||||
// Use the land sequence as the basis for the recovery
|
PlayerData::ActionAnimation& anim = mDataBlock->actionList[PlayerData::LandAnim];
|
||||||
setActionThread(PlayerData::LandAnim, true, false, true, true);
|
if (anim.sequence != -1)
|
||||||
F32 timeScale = mShapeInstance->getDuration(mActionAnimation.thread) / mDataBlock->landSequenceTime;
|
{
|
||||||
mShapeInstance->setTimeScale(mActionAnimation.thread,timeScale);
|
// Use the land sequence as the basis for the recovery
|
||||||
|
setActionThread(PlayerData::LandAnim, true, false, true, true);
|
||||||
|
F32 timeScale = mShapeInstance->getDuration(mActionAnimation.thread) / mDataBlock->landSequenceTime;
|
||||||
|
mShapeInstance->setTimeScale(mActionAnimation.thread, timeScale);
|
||||||
|
}
|
||||||
mRecoverDelay = mDataBlock->landSequenceTime;
|
mRecoverDelay = mDataBlock->landSequenceTime;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue