rigidshape pef tweaks

account for integration for atrest evaluation. if we're atrest, *don't* network momentums. just send the bool
This commit is contained in:
AzaezelX 2025-02-28 17:54:20 -06:00
parent 3c358d45d0
commit 43309fef2a
3 changed files with 58 additions and 30 deletions

View file

@ -363,4 +363,6 @@ void Rigid::setAtRest()
linMomentum.set(0.0f,0.0f,0.0f);
angVelocity.set(0.0f,0.0f,0.0f);
angMomentum.set(0.0f,0.0f,0.0f);
force.set(0.0f, 0.0f, 0.0f);
torque.set(0.0f, 0.0f, 0.0f);
}