![]() |
Public API Reference |
#include <path.h>
Inheritance diagram for csPath:

Public Methods | |
| csPath (int p) | |
| Create a path with p points. More... | |
| virtual | ~csPath () |
| Destroy the path. More... | |
| void | SetPositionVectors (csVector3 *v) |
| Set the position vectors (first three dimensions of the cubic spline). More... | |
| void | SetUpVectors (csVector3 *v) |
| Set the up vectors (dimensions 3 to 5). More... | |
| void | SetForwardVectors (csVector3 *v) |
| Set the forward vectors (dimensions 6 to 8). More... | |
| void | SetPositionVector (int idx, const csVector3 &v) |
| Set one position vector. More... | |
| void | SetUpVector (int idx, const csVector3 &v) |
| Set one up vector. More... | |
| void | SetForwardVector (int idx, const csVector3 &v) |
| Set one forward vector. More... | |
| void | GetPositionVector (int idx, csVector3 &v) |
| Get one position vector. More... | |
| void | GetUpVector (int idx, csVector3 &v) |
| Get one up vector. More... | |
| void | GetForwardVector (int idx, csVector3 &v) |
| Get one forward vector. More... | |
| void | GetInterpolatedPosition (csVector3 &pos) |
| Get the interpolated position. More... | |
| void | GetInterpolatedUp (csVector3 &pos) |
| Get the interpolated up vector. More... | |
| void | GetInterpolatedForward (csVector3 &pos) |
| Get the interpolated forward vector. More... | |
An object or camera can use this object to trace a path in 3D. This is particularly useful in combination with csReversibleTransform::LookAt().
Definition at line 36 of file path.h.
|
|
Create a path with p points.
|
|
|
Destroy the path.
|
|
||||||||||||
|
Get one forward vector.
Definition at line 118 of file path.h. References csSpline::GetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
|
Get the interpolated forward vector.
Definition at line 140 of file path.h. References csBSpline::GetInterpolatedDimension, csVector3::x, csVector3::y, and csVector3::z. |
|
|
Get the interpolated position.
Definition at line 126 of file path.h. References csBSpline::GetInterpolatedDimension, csVector3::x, csVector3::y, and csVector3::z. |
|
|
Get the interpolated up vector.
Definition at line 133 of file path.h. References csBSpline::GetInterpolatedDimension, csVector3::x, csVector3::y, and csVector3::z. |
|
||||||||||||
|
Get one position vector.
Definition at line 104 of file path.h. References csSpline::GetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
||||||||||||
|
Get one up vector.
Definition at line 111 of file path.h. References csSpline::GetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
||||||||||||
|
Set one forward vector.
Definition at line 97 of file path.h. References csSpline::SetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
|
Set the forward vectors (dimensions 6 to 8).
|
|
||||||||||||
|
Set one position vector.
Definition at line 83 of file path.h. References csSpline::SetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
|
Set the position vectors (first three dimensions of the cubic spline).
|
|
||||||||||||
|
Set one up vector.
Definition at line 90 of file path.h. References csSpline::SetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
|
Set the up vectors (dimensions 3 to 5).
|