包含此页的版本:
不含此页的版本:
Set the CollisionA collision occurs when the physics engine detects that the colliders of two GameObjects make contact or overlap, when at least one has a Rigidbody component and is in motion. More info
See in Glossary Detection mode on a Rigidbody component in the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
See in Glossary window to balance simulation accuracy, and prevent phenomena such as fast-moving objects from passing through other objects, against CPU performance.
When you enable Collision Detection modes, always profile and monitor performance. Some Collision Detection modes, especially Continuous and Continuous Dynamic, can significantly impact CPU usage. Apply them selectively and only where needed.
To learn more about RigidbodyA component that allows a GameObject to be affected by simulated gravity and other forces. More info
See in Glossary component collision detection modes, refer to Rigidbody component reference.
The available collision detection modes include:
To determine the ideal Collision Detection mode for a Rigidbody component, the recommended best practice is to: