Search Issue Tracker
Fixed
Fixed in 6000.3.13f1, 6000.4.1f1, 6000.5.0b2, 6000.6.0a2
Votes
0
Found in
6000.3.0a5
6000.4.0a1
6000.5.0a1
6000.6.0a1
Issue ID
UUM-137414
Regression
No
MassConfiguration Issues with PhysicsBody
When using PhysicsShape with PhysicsShapeDefinition.startMassUpdate disabled, for the purpose of setting the PhysicsBody.massConfiguration directly, the PhysicsBody is not configured correctly unless PhysicsBody.ApplyMassFromShapes is called.
This is by design by Box2D however it is not intuitive.
In additional, there are only getters that directly expose the mass, rotationalInertia and localCenterOfMass so a full MassConfiguration must be set. To make this more intuitive, we should add setters for these properties.
Finally, the scripting documentation is rather sparse in describing these methods and properties so they should be improved too.
Discussions Post: [https://discussions.unity.com/t/physicscore-2d-is-it-required-to-call-applymassfromshapes-before-setting-massconfiguration]
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [HDRP] Forced context-switching occurs when adding an unregistered Custom Post Process to a scene Volume
- Multiple errors are spammed in the Console window when entering “Infinity” value in the Falloff field of a Freeform Light 2D
- Inspector loses focus or Material doesn't update when using GetModifiedMaterial with a Mask component
- Crash on GfxDeviceClient::AllocateBufferInternal when entering Play mode using Graphics.RenderPrimitives and Graphics.DrawProcedural in the scene
- Import TextMesh Pro window opens when the Text Mesh Pro Essentials and Examples are already imported when creating a new TextMesh Pro GameObject in the Hierarchy with TextMesh Pro settings reset
Resolution Note:
Fixed in 6000.6.0a2
Resolution Note (fix version 6000.6.0a2):
Fixed in 6000.6.0a2
Resolution Note (fix version 6000.5.0b2):
Fixed in 6000.5.0b2
Resolution Note (fix version 6000.4.1f1):
Fixed in 6000.4.1f1
Resolution Note (fix version 6000.3.13f1):
Fixed in 6000.3.13f1