Colliders are available in different shape configurations. A collider’s shape defines how accurately the collider matches the Mesh shape, and how computationally efficient the collider is.
Topic | 描述 |
---|---|
Introduction to collider shapes | Overview of the different collider shapes in Unity. |
Primitive collider shapes | Primitive collider shapes are built-in, pre-calculated collider shapes in Unity (Box, Sphere and Capsule colliders). |
Mesh colliders | Mesh colliders create collision geometry that matches the shape of their associated Mesh, for extremely accurate collisions. |
Wheel colliders | Wheel colliders use raycasting to form wheel-shaped collision geometry with suspension and tyre-based friction. |
Terrain colliders | Terrain colliders create collision geometry that matches the shape of their associated Terrain, for extremely accurate collisions. |
Compound colliders | Compound colliders are a combination of multiple other colliders, which together have a single center of mass. |