Version: 2023.2
Collider shapes
Primitive collider shapes

Introduction to collider shapes

Colliders are available in different shape configurations. There are three main shape types for colliders:

  • Primitive colliders are built-in simple shapes, which you can attach to your GameObject and scale to approximately the same size and shape. They are the most computationally efficient shape option, but the least accurate for complex GameObject shapes.
  • Mesh colliders exactly match the shape of the GameObject’s Mesh. They are more accurate than primitive colliders, but require more computational resources.
  • Wheel colliders are for in-game items that have physics-simulated wheels (for example, ground vehicles). They have built-in wheel physics, and controls for simulating friction and suspension.

You can also combine several collider shapes to create compound colliders.

In addition, Unity’s Terrain tool has a specific heightmap-based collider, called the Terrain Collider.

其他资源

Collider shapes
Primitive collider shapes