Collision detection
Discrete collision detection
Layer-based collision detection
Any Collider 2D component added to the same GameObject or child GameObject is implicitly attached to that Rigidbody 2D GameObje...
Enable Collision Enable this property to enable collisions between the two connected GameObjects.
Enable Collision Enable this property to enable collisions between the two connected GameObjects.
When you attach a collider 2D component to a GameObject, the collider 2D defines which area of the GameObject has collision and...
Choose a collision detection mode
Continuous collision detection (CCD)
The Box Collider 2D component is a Collider 2D that interacts with the 2D physics system for collision detection. This collider...
The Circle Collider 2D component is a Collider 2D that interacts with the 2D physics system for collision detection. This colli...
Enable Collision Enable this property to enable collisions between the two connected GameObjects.
Enable Collision Enable this property to enable collisions between the two connected GameObjects.
Enable Collision Enable this property to enable collisions between the two connected GameObjects.
Enable Collision Enable this property to enable collisions between the two connected GameObjects.
Use Collider Mask Check this box to enable the 'Collider Mask' property. If this is not enabled, the Global Collision Matrix ...
Use Collider Mask Enable this to use the Collider Mask property. If this not enabled, the global collision matrix will be use...
Collision Detection Define how collisions between Collider 2Ds are detected.
Collision Detection Define how collisions between Collider 2Ds are detected.
Collision Detection Define how the physics system detects collisions between this Rigidbody’s collider and other colliders in...
Layer Collision Matrix Define how the layer-based collision detection system behaves. To select which layers on the Collision...
Layer-based collision detection How to use layers when configuring collisions.
Continuous** and Continuous Dynamic are the most accurate collision detection modes. However, they are also the most computatio...
A Sprite’s physics shape can contain multiple separate outlines. This is useful if only specific areas of a Sprite need a Colli...
Here's an example of a script that modifies parameters based on user input and collision detection.
The Layer Overrides section provides properties that allow you to override the project-wide Layer-based collision detection set...
Rasterization is a rendering technique that converts vector data (triangle projections) to pixel data (render target) by determ...
The Mesh collider takes a Mesh Asset and builds a collider that matches the geometry of that Mesh. It is more accurate for coll...
The Mesh collider takes a Mesh Asset and builds a collider that matches the geometry of that Mesh. It is more accurate for coll...
Discreet Overlaps The number of overlap events which Unity used discrete collision detection to solve.
Continuous Overlaps The number of overlap events which Unity used continuous collision detection to solve. Unavailable
Speculative collision detection is the CCD algorithm for Continuous Speculative mode.
The Layer Overrides section provides properties that allow you to override the project-wide Layer-based collision detection set...
The Layer Overrides section provides properties that allow you to override the project-wide Layer-based collision detection set...
The Wheel collider is a collider for ground vehicles. It has built-in collision detection, wheel physics, and a slip-based tire...
The Wheel collider is a collider for grounded vehicles. It has built-in collision detection, wheel physics, and a slip-based ti...
In mixed reality mode, the input options further depend on whether your app is running in a shared space with other apps or in ...
Collision Use colliders to configure collisions between GameObjects.
2darray 2D texture arrays are a supported data type.
A Kinematic Rigidbody 2D behaves like an immovable object (as if it has infinite mass) during collisions, and mass-related prop...
Collision module reference Explore properties on the Collision module, to configure particle collisions.
Unity helps you simulate physics in your Project to ensure that the objects correctly accelerate and respond to collisions, gra...
Collision Emits particles when a parent particle collides with another GameObject. For more information on how to control par...
Enable Collision When checked, this enables collisions between bodies connected with a joint.
Enable Collision When checked, this property enables collisions between physics bodies that are connected with the joint.
Enable Collision When checked, this enables collisions between bodies connected with a joint.
Enable Collision Enable this setting if the two connected objects should register collisions with each other.
Mesh colliders Mesh colliders create collision geometry that matches the shape of their associated Mesh, for extremely accura...
If you only need the collider to provide collisions, and not any collision or trigger events, you can arrange colliders in any ...
The physics engine will report collisions against an object by calling event functions on that object's script. The OnCollision...
Particle Raycast Budget Sets the maximum number of raycasts to use for particle system collisions if Collision Quality is set...
A Static Rigidbody 2D is designed to not move under simulation at all. If anything collides with it, a Static Rigidbody 2D beha...
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.