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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Does Unity 5 use PhysX terrain?

Discussion in 'Physics' started by tristanrichter, Sep 1, 2015.

  1. tristanrichter

    tristanrichter

    Joined:
    Oct 28, 2013
    Posts:
    15
    Does Unity 5 use the PhysX heightfield / terrain class for its terrain?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    All versions of Unity use the heightfield collider.

    --Eric
     
  3. tristanrichter

    tristanrichter

    Joined:
    Oct 28, 2013
    Posts:
    15
    Yes, but is the heightfield collider based on PhysX?
     
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    The only physics in Unity are PhysX for 3D and Box2D for 2D. If it uses 3D physics then by definition it's using PhysX.

    --Eric
     
  5. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    From what I've heard, it probably is. Using the terrain collider is much faster than a mesh collider so the chances of it using an equivalent physx call for the task is fairly likely. It's faster.
     
  6. tristanrichter

    tristanrichter

    Joined:
    Oct 28, 2013
    Posts:
    15
    How would I go about figuring this out with absolute certainty? Experimentally?
     
  7. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401