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

Method deathDelta

Engine/source/T3D/player.cpp:3600–3608  ·  view source on GitHub ↗

Get change from mLastDeathPos - return current pos. Assumes we're in death anim.

Source from the content-addressed store, hash-verified

3598
3599// Get change from mLastDeathPos - return current pos. Assumes we're in death anim.
3600F32 Player::deathDelta(Point3F & delta)
3601{
3602 // Get ground delta from the last time we offset this.
3603 MatrixF mat;
3604 F32 pos = mShapeInstance->getPos(mActionAnimation.thread);
3605 mShapeInstance->deltaGround1(mActionAnimation.thread, mDeath.lastPos, pos, mat);
3606 mat.getColumn(3, & delta);
3607 return pos;
3608}
3609
3610// Called before updatePos() to prepare it's needed change to velocity, which
3611// must roll over. Should be updated on tick, this is where we remember last

Callers

nothing calls this directly

Calls 3

deltaGround1Method · 0.80
getColumnMethod · 0.80
getPosMethod · 0.45

Tested by

no test coverage detected