Enum TerrainCollider.CollisionMethod
TerrainCollider offers two methods for rigid body collision with performance / quality tradeoffs.
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
public enum TerrainCollider.CollisionMethod
Fields
Name | Description |
---|---|
Triangles | In this mode the collision behaves exactly as if it were a MeshCollider. |
VertexSamples | Each vertex of the other shape is projected downward onto the terrain and a contact plane is generated from the triangle. This is very fast, but it is possible for the other shape's edges and faces to penetrate edges and vertices of the terrain, or for the other shape to tunnel completely through steep faces in the terrain. It works best with relatively smooth terrain, and worst with cliffs and sharp peaks. It also has the trait that bodies below the terrain but within its AABB will be pushed up, even if they are not touching the surface triangles. |