Follow.GetTrackingData

Static Method in Follow

Declaration

public static void GetTrackingData(CameraContext context, Transform target, Vector3 offset, out Vector3 trackingPoint, out Quaternion trackingRotation)

Description

Calculates the tracking point and tracking rotation for the camera.

Parameters

contextThe camera context.
targetThe target to track.
offsetThe offset from the target.
trackingPointThe output tracking point.
trackingRotationThe output tracking rotation.