Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How do I use a 2D camera dead zone with a 3D camera?

Discussion in 'Cinemachine' started by norisoup1, Jan 17, 2019.

  1. norisoup1

    norisoup1

    Joined:
    Jun 21, 2018
    Posts:
    4
    Even if the player and certain objects are far away,

    I need to see everything in the side view.

    use follow and lookAt

    cannot use dead Zone.



    질문.PNG
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Can you elaborate a little more on what you're trying to do? I'm having trouble understanding the question.
     
  3. norisoup1

    norisoup1

    Joined:
    Jun 21, 2018
    Posts:
    4
    I am making a soccer game.

    I'm working on a side view.

    FollowTarget.transform.position

    within a certain area == DeadZone

    I want to stop moving the camera.

    Target group cameras are looking for ways to have or implement these features.
     

    Attached Files:

  4. norisoup1

    norisoup1

    Joined:
    Jun 21, 2018
    Posts:
    4

    I am making a soccer game.

    I'm working on a side view.

    FollowTarget.transform.position

    within a certain area == DeadZone

    I want to stop moving the camera.

    Target group cameras are looking for ways to have or implement these features.
     

    Attached Files:

  5. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Unfortunately, dead zones are not currently supported by the group composer. You could get a dead zone by using an ordinary composer with a group target. In that case the camera will not move if the center point of the group is inside the dead zone.

    You would have to implement the group framing separately, as a custom CinemachineExtension. You can look at CinemachineFollowZoom as an example. Copy it, rename the copy and drop it into your project. Modify it to adjust the zoom according to the group's bounding radius. You can then add it to the vcam via the vcam's Extensions dropdown in the inspector.
     
  6. norisoup1

    norisoup1

    Joined:
    Jun 21, 2018
    Posts:
    4

    Thank you for your advice.

    I will try and solve the problem.!!