docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum TerrainCollider.CollisionMethod

    TerrainCollider offers two methods for rigid body collision with performance / quality tradeoffs.

    Namespace: Unity.Physics
    Assembly: Unity.Physics.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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)