Color legend method
A point sampled from a camera path: where it is, which way the curve heads, the orientation there and how far along the path it lies.
A read-only struct, returned by SampleByPathDistance. The camera paths page shows it in context, with code.
Names are colored by what they are: a method; values and fields keep the plain color.
Fields
DistanceUnits →
float · Read-only field. The distance along the path that was sampled, in world units from its start, after clamping to 0 to Length.
Orientation →
Quaternion · Read-only field. The orientation there, turned from that of the waypoint before to that of the waypoint after, in proportion to the distance along the segment.
Position →
Vector3 · Read-only field. The point on the curve, in world coordinates.
Tangent →
Vector3 · Read-only field. The direction the curve heads there, a unit vector. Vector3.Forward where it has none, as on a path of one waypoint.
Methods
CameraPathPoint() →
CameraPathPoint(Vector3 position, Vector3 tangent, Quaternion orientation, float distanceUnits) · A point from its parts.
| Parameter | Type | Description |
|---|---|---|
position |
Vector3 |
The point, in world coordinates. |
tangent |
Vector3 |
The direction of the curve there. |
orientation |
Quaternion |
The orientation there. |
distanceUnits |
float |
The distance along the path. |