stop overriding mass when setting motion locks
This commit is contained in:
parent
6de662cd3b
commit
6357bf521a
10 changed files with 253 additions and 142 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue