Docs / Camera

Glossary: CameraWaypoint

The members of CameraWaypoint, in alphabetical order.

Color legend method

A point a camera path passes through, the way the camera faces there, and how the camera eases into, out of and waits at it.

A struct of plain fields; the factories fill them for each mode and leave the easing and the hold off. The camera paths page shows it in context, with code, and its easing and holds section how a run is timed.

Names are colored by what they are: a method; values and fields keep the plain color.

Fields

EaseIn →

BaseShapingFunction? · How the camera leaves the waypoint: its speed over the first half of the next segment, read as speed over time, a share of cruise speed. The camera sets off from rest and its speed follows the curve up to cruise, which it meets at exactly cruise speed: Linear picks up speed steadily, an ease in such as QuadraticEaseIn gently at first, an ease out quickly at first. The half takes the inverse of the curve’s average speed in cruise times, see EaseStretch: twice for Linear, three times for a quadratic ease in. null travels the half at cruise speed: the default, and what the factories give. Set the waypoint again after changing the curve’s parameters, so the path retimes itself.

EaseOut →

BaseShapingFunction? · How the camera arrives at the waypoint: its speed over the second half of the segment before, as 1 minus the curve, so the camera slows from cruise to rest here: Linear steadily, an ease out such as QuadraticEaseOut settling gently at the end, an ease in braking late. An ease out here takes as long as the matching ease in does as EaseIn. null travels the half at cruise speed: the default, and what the factories give.

HoldSec →

float · The seconds the camera waits at the waypoint before it leaves: at the first waypoint before it sets off, at the last of an open path before the run ends. Plain seconds, which the cruise speed doesn’t change. 0, the default, passes straight through; a negative or non-finite value counts as 0.

LookAtTarget →

Vector3 · The point a LookAtTarget waypoint faces, in world coordinates. The origin from the other factories.

Orientation →

Quaternion · The facing of a Fixed waypoint, normalized when used; a zero quaternion, as in default(CameraWaypoint), faces −Z. Identity from the other factories.

OrientationMode →

CameraWaypointOrientationMode · How the waypoint’s facing is decided. Fixed in default(CameraWaypoint).

Position →

Vector3 · Where the waypoint is, in world coordinates. The curve passes through it.

Methods

CreateFixed() →

CreateFixed(Vector3 position, Quaternion orientation) · Static. A Fixed waypoint.

Parameter Type Description
position Vector3 Where the waypoint is.
orientation Quaternion The way the camera faces there.

CreateFixedFromCamera() →

CreateFixedFromCamera(Camera camera) · Static. A Fixed waypoint at the camera’s position, with its orientation. Throws ArgumentNullException for null.

Parameter Type Description
camera Camera The camera to copy.

CreateLookAtTarget() →

CreateLookAtTarget(Vector3 position, Vector3 lookAtTarget) · Static. A LookAtTarget waypoint, facing the target with no roll against the path’s WorldUp.

Parameter Type Description
position Vector3 Where the waypoint is.
lookAtTarget Vector3 The point the camera faces there.

CreateTangentFollow() →

CreateTangentFollow(Vector3 position) · Static. A TangentFollow waypoint, facing the way the path heads there with no roll against the path’s WorldUp.

Parameter Type Description
position Vector3 Where the waypoint is.