Fixes 03 (#40)
Fixes #33, #34, #35, #37, #39, #41, #42, #43 Also fixes b3Body_SetMassData inertia tensor.
This commit is contained in:
parent
29bf523ce7
commit
655799893a
25 changed files with 771 additions and 151 deletions
|
|
@ -733,6 +733,10 @@ static void b3FinalizeBodiesTask( int startIndex, int endIndex, int workerIndex,
|
|||
sim->force = b3Vec3_zero;
|
||||
sim->torque = b3Vec3_zero;
|
||||
|
||||
// If you hit this then it means you deferred mass computation but never called b3Body_ApplyMassFromShapes
|
||||
// or b3Body_SetMassData.
|
||||
B3_ASSERT( ( body->flags & b3_dirtyMass ) == 0 );
|
||||
|
||||
body->flags &= ~b3_bodyTransientFlags;
|
||||
body->flags |= ( sim->flags & ( b3_isSpeedCapped | b3_hadTimeOfImpact ) );
|
||||
body->flags |= ( state->flags & ( b3_isSpeedCapped | b3_hadTimeOfImpact ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue