Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

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:
    1,946
    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?