Collision detection
There are three settings for collision detection in Unity, which can be configured in a RigidBody component's Collision Detection property: Discrete, Continuous, and ContinuousDynamic.
The Discrete setting enables Discrete Collision Detection, which effectively teleports objects a small distance every timestep based on their velocity and how much time has passed. Once all of the objects have been moved, it then performs a bounding volume check for any overlaps, treats them as collisions, and resolves them based on their physical properties and how they overlap. This method risks collisions being missed if small objects move too quickly.
The following diagram shows how Discrete Collision Detection works to catch two objects ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access