Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Unity.Physics.TerrainCollider: Passing Hole Information

Discussion in 'Physics for ECS' started by bl4cksun, Jun 25, 2022.

  1. bl4cksun


    Aug 15, 2015
    I am creating a TerrainCollider in Unity Physics 0.51 from a TerrainData instance via
    Code (CSharp):
    1. Unity.Physics.TerrainCollider.Create(heights, size, scale collisionMethod, collisionFilter)
    So far I haven't figured out how to pass information about terrain holes into the TerrainCollider. I've tried passing negative values, float.NaN, float.NegativeInfinity as height values, but that does not work as expected or results in errors.

    Is there a way to pass hole information into the TerrainCollider?