Search Unity

how to lock local axis of the vcam?

Discussion in 'Cinemachine' started by halevi, Jan 17, 2022.

  1. halevi

    halevi

    Joined:
    Dec 13, 2020
    Posts:
    35
    hi have target that i want to follow and look at her but not in forward local direction, how i can lock the forward direction in my case of the vcam?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    Try setting the binding mode to World Space
     
  3. halevi

    halevi

    Joined:
    Dec 13, 2020
    Posts:
    35
    hi thanks,i dont want the vcam from z prespective of world space i want the follow offset from target local forward space but not moving in this local direction i will explain , i build pool game and when i rotate the cue around the cueball for aiming i need my vcam to rotate but only on its local x axis and when i hit with the cue I dont want the camera to track the target at all in any axis, so i need solution how to track after local axis of target but somtimes to lock my track on specific vcam local direction
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    Try a vcam with FramingTransposer in Body, and DoNothing in Aim. Control the rotation from script by directly manipulating the rotation in the vcam's transform. Use the cue as a Follow target.