Search Unity

Box2d Chain Shape

Discussion in 'Physics' started by jeffweber, Mar 27, 2015.

  1. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    Are there any plans to implement the Box2D Chain Shape?

    From the Box2D Docs:

    4.6 Chain Shapes
    The chain shape provides an efficient way to connect many edges together to construct your static game worlds. Chain shapes automatically eliminate ghost collisions and provide two sided collision.

    I'm currently experiencing some of these "ghost" collisions when sliding over/near sharp edges using Edge Colliders. I believe the chain shape was designed specifically to eliminate this.

    Thx.

    -Jeff
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,487
    That's the EdgeCollider2D component. It is a thin wrapper around the Box2D chain-shape.
     
  3. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    Ok, thanks. Good to hear you wrapped the Chain Shape and not just the Edge Shape.

    -Jeff