Search Issue Tracker
By Design
Votes
0
Found in
5.2.0f1
Issue ID
719351
Regression
No
[Components::Rigidbody2D] No enable/disable check box for Rigidbody2D component
There is no Enable/Disable checkbox for Rigidbody2D componentin the inspector
Steps to repro:
1. Create a new unity project
2. Add a sprite
3. Add the rigidbody2d component to it
Note that there is no checkbox to enable disable the component while all other components have it.
Resolved(By Design): We purposely don't allow this because not only does it have non-trivial performance characteristics but it also leads to confusing implicit behaviour of associated colliders.
What should colliders do?
Any collider will look for a valid Rigidbody2D on the same GameObject or 'up' the parent GameObject hierarchy. Disabling a Rigidbody2D means that the existing colliders will become static i.e. not attached to a valid Rigidbody2D or worse, attach to another Rigidbody2D somewhere up the hierarchy.
For this very reason, there is the following property: http://docs.unity3d.com/ScriptReference/Rigidbody2D-simulated.html
This allows you to stop the Rigidbody2D and all its attached colliders from interacting in the physics simulation. It is also super fast and allows for the typically required behaviour of stopping the rigidbody and its colliders from working.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Add comment