stop overriding mass when setting motion locks

This commit is contained in:
Erin Catto 2026-11-17 22:50:41 -08:00
commit 6357bf521a
10 changed files with 253 additions and 142 deletions

View file

@ -1211,7 +1211,7 @@ public:
b3BodyDef bodyDef = b3DefaultBodyDef();
bodyDef.type = b3_dynamicBody;
bodyDef.name = "full";
bodyDef.position = { 0.0f, 1.0f, 2.0f };
bodyDef.position = { 0.0f, 1.0f, 3.0f };
bodyDef.motionLocks.linearX = true;
bodyDef.motionLocks.linearY = true;
bodyDef.motionLocks.linearZ = true;