Search Unity

Compound colliders for Cinemachine Confiner 3D ??

Discussion in 'Cinemachine' started by RemDust, Sep 18, 2021.

  1. RemDust

    RemDust

    Joined:
    Aug 28, 2015
    Posts:
    432
    Hello world !
    =)

    I'm using a 2D perspective camera in a 2d metroidvania.
    I'm looking for the correct way of creating 3d colliders to use with the confiner.

    I tried to add multiple box colliders to the same gameobject, also tried to create compound colliders by parenting different box colliders but no luck either.
    Cinemachine only uses the first collider...

    What is the proper way of building nice complex confiners ?

    Thank you !
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,719
    Yes, use CinemachineConfiner2D and create complex colliders with PolygonCollider2D or CompositeCollider2D.