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
|
|
@ -297,6 +297,11 @@ static b3ShapeId b3CreateShape( b3BodyId bodyId, const b3ShapeDef* def, const vo
|
|||
{
|
||||
b3UpdateBodyMassData( world, body );
|
||||
}
|
||||
else if ( ( body->flags & b3_dirtyMass ) == 0 )
|
||||
{
|
||||
body->flags |= b3_dirtyMass;
|
||||
b3SyncBodyFlags( world, body );
|
||||
}
|
||||
|
||||
b3ValidateSolverSets( world );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue