Cinemachine.CinemachineTransposer.TrackTarget(float, UnityEngine.Vector3, UnityEngine.Vector3, out UnityEngine.Vector3, out UnityEngine.Quaternion)

Here are the examples of the csharp api Cinemachine.CinemachineTransposer.TrackTarget(float, UnityEngine.Vector3, UnityEngine.Vector3, out UnityEngine.Vector3, out UnityEngine.Quaternion) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 View Source File : CinemachineTransposer.cs
License : MIT License
Project Creator : BattleDawnNZ

public override void MutateCameraState(ref CameraState curState, float deltaTime)
        {
            InitPrevFrameStateInfo(ref curState, deltaTime);
            if (IsValid)
            {
                Vector3 offset = EffectiveOffset;
                Vector3 pos;
                Quaternion orient;
                TrackTarget(deltaTime, curState.ReferenceUp, offset, out pos, out orient);
                curState.RawPosition = pos + orient * offset;
                curState.ReferenceUp = orient * Vector3.up;
            }
        }

19 View Source File : CinemachineTransposer.cs
License : MIT License
Project Creator : PacktPublishing

public override void MutateCameraState(ref CameraState curState, float deltaTime)
        {
            //UnityEngine.Profiling.Profiler.BeginSample("CinemachineTransposer.MutateCameraState");
            InitPrevFrameStateInfo(ref curState, deltaTime);
            if (IsValid)
            {
                Vector3 pos;
                Quaternion orient;
                TrackTarget(deltaTime, curState.ReferenceUp, m_FollowOffset, out pos, out orient);
                curState.RawPosition = pos + orient * m_FollowOffset;
                curState.ReferenceUp = orient * Vector3.up;
            }
            //UnityEngine.Profiling.Profiler.EndSample();
        }