Method TrackTarget
TrackTarget(float, Vector3, Vector3, out Vector3, out Quaternion)
Positions the virtual camera according to the transposer rules.
선언
protected void TrackTarget(float deltaTime, Vector3 up, Vector3 desiredCameraOffset, out Vector3 outTargetPosition, out Quaternion outTargetOrient)
파라미터
타입 | 이름 | 설명 |
---|---|---|
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 |