MeshCollider
A Collider that takes a Mesh asset and builds its collision shape based on it.
Read time 6 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
- Inherits from: Collider
[RequireComponent(typeof(Transform))]public class MeshCollider : Collider
Remarks
Additional Resources: BoxCollider, CapsuleCollider, PhysicsMaterial, Rigidbody, Collision Detection.
Properties
Property | Description |
|---|---|
| convex | Use a convex collider from the mesh. |
| cookingOptions | Options used to enable or disable certain features in mesh cooking. |
| sharedMesh | The mesh object used for collision detection. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |