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
- [Scene View][Ubuntu] Prefab mode UI ghosting in HDRP
- Deleting AudioMixer asset throws MissingReferenceException and breaks the Audio Mixer window
- Crash on ScheduleGenerateTilingShape when modifying PolygonCollider2D path count and setting path vertices
- Crash when a scene is created with LocalPhysicsMode::Physics3D
- [HDRP] Light doesn't bounce off terrains
Add comment