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

@ -315,7 +315,9 @@ typedef enum b3BodyType
b3_bodyTypeCount,
} b3BodyType;
/// Motion locks to restrict the body movement
/// Motion locks to restrict the body movement. Motion locks are a hack and will likely be removed. The only robust
/// lock is fully locked rotation. You will see softened contacts and other artifacts with this sytem. Other physics
/// engines have the same problem and some have stability problems due to this approach.
/// @ingroup body
typedef struct b3MotionLocks
{