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

Terrain collider and 1.0

Discussion in 'Physics for ECS' started by runner78, Apr 7, 2022.

  1. runner78

    runner78

    Joined:
    Mar 14, 2015
    Posts:
    709
    Will there be authoring for ECS 1.0 TerrainCollider? Is there already a way to use Unity Terrain with ECS?
    I know that there is a TerrainCollider, but I haven't found any information on how best to use it with the current terrain.
     
  2. JosepMariaPujol

    JosepMariaPujol

    Unity Technologies

    Joined:
    Jun 16, 2021
    Posts:
    77
    You can use the PhysicsShape component and select 'mesh' as the shape type. That setup configuration should allow you to generate a TerrainCollider. See picture.
     

    Attached Files:

  3. runner78

    runner78

    Joined:
    Mar 14, 2015
    Posts:
    709
    I wanted to try to make a Unity Terrain and an ECS Bases no-kinematic Character Controller. I did not want to create a custom terrain system for a larger terrain. For testing I used meshes, but I also came across the problem that the Character bounced on mesh edges.
     
    Last edited: Apr 23, 2022
  4. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    It's been a bit longer than a week, and wondered what info might've been gleaned since? :)
     
    unity_8p6oRXXqiWbRTQ likes this.
  5. Arnold_2013

    Arnold_2013

    Joined:
    Nov 24, 2013
    Posts:
    187
    hippocoder likes this.