Search Unity

Confiner 2D Issue

Discussion in 'Cinemachine' started by Cristof, Jan 1, 2019.

  1. Cristof

    Cristof

    Joined:
    Jan 19, 2014
    Posts:
    1
    Hi
    I have this problem: When I add confiner to vcam the camera stops following the player game object which is set to follow, and just stays in the same position. I added empty object with polygon2d collider as a bounding shape.I've also noticed that when i'm moving this empty object on scene, the cameraa also follows.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,501
    The job of the confiner is to confine the vcam's position to the bounding shape you provide. The vcam will follow the target as much as possible, while staying inside the shape. If you provide a point-sized shape, then the vcam will just stay there. So the confiner is doing its job. What are you trying to accomplish?