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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    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?