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

Method deathDelta

Engine/source/T3D/player.cpp:3544–3552  ·  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

3542
3543// Get change from mLastDeathPos - return current pos. Assumes we're in death anim.
3544F32 Player::deathDelta(Point3F & delta)
3545{
3546 // Get ground delta from the last time we offset this.
3547 MatrixF mat;
3548 F32 pos = mShapeInstance->getPos(mActionAnimation.thread);
3549 mShapeInstance->deltaGround1(mActionAnimation.thread, mDeath.lastPos, pos, mat);
3550 mat.getColumn(3, & delta);
3551 return pos;
3552}
3553
3554// Called before updatePos() to prepare it's needed change to velocity, which
3555// 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