MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / advanceTime

Method advanceTime

Engine/source/T3D/player.cpp:2230–2257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2228}
2229
2230void Player::advanceTime(F32 dt)
2231{
2232 // Client side animations
2233 Parent::advanceTime(dt);
2234 // Increment timer for triggering idle events.
2235 if (idle_timer >= 0.0f)
2236 idle_timer += dt;
2237 updateActionThread();
2238 updateAnimation(dt);
2239 updateSplash();
2240 updateFroth(dt);
2241 updateWaterSounds(dt);
2242
2243 mLastPos = getPosition();
2244
2245 if (mImpactSound)
2246 playImpactSound();
2247
2248 // update camera effects. Definitely need to find better place for this - bramage
2249 if( isControlObject() )
2250 {
2251 if( mDamageState == Disabled || mDamageState == Destroyed )
2252 {
2253 // clear out all camera effects being applied to player if dead
2254 gCamFXMgr.clear();
2255 }
2256 }
2257}
2258
2259bool Player::getAIMove(Move* move)
2260{

Callers 3

getGroundInfoMethod · 0.45
updateAnimationMethod · 0.45

Calls 3

advanceTimeFunction · 0.85
getPositionFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected