Search Unity

Creating a custom shape (collider) type

Discussion in 'Physics for ECS' started by zardini123, May 17, 2020.

  1. zardini123

    zardini123

    Joined:
    Jan 5, 2013
    Posts:
    68
    I was wondering what extensions to Unity Physics code would be required to make a custom collider?

    For example, my project might require NURBS to achieve smooth, collidable surfaces (these surfaces will be static).
     
  2. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    481
    The TerrainCollider was the latest one added after all the others. I recommend taking a look at any point in the code where that Collider is specifically called out, perhaps even tweaking the TerrainCollider itself to act as the NURB control mesh and having it returning different contact points for a smooth surface rather than the triangle faces.
     
  3. Vanamerax

    Vanamerax

    Joined:
    Jan 12, 2012
    Posts:
    938
    I would be interested in this as well.