Method TrackTarget
TrackTarget(float, Vector3, Vector3, out Vector3, out Quaternion)
Positions the virtual camera according to the transposer rules.
Declaration
protected void TrackTarget(float deltaTime, Vector3 up, Vector3 desiredCameraOffset, out Vector3 outTargetPosition, out Quaternion outTargetOrient)
Parameters
Type | Name | Description |
---|---|---|
float | deltaTime | Used for damping. If less than 0, no damping is done. |
Vector3 | up | Current camera up |
Vector3 | desiredCameraOffset | Where we want to put the camera relative to the follow target |
Vector3 | outTargetPosition | Resulting camera position |
Quaternion | outTargetOrient | Damped target orientation |