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

Method setAtRest

Engine/source/T3D/rigid.cpp:359–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359void Rigid::setAtRest()
360{
361 atRest = true;
362 linVelocity.set(0.0f,0.0f,0.0f);
363 linMomentum.set(0.0f,0.0f,0.0f);
364 angVelocity.set(0.0f,0.0f,0.0f);
365 angMomentum.set(0.0f,0.0f,0.0f);
366}

Callers 5

updatePosMethod · 0.80
updateForcesMethod · 0.80
resetMethod · 0.80
updateForcesMethod · 0.80
updatePosMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected