#include <path.h>
Inheritance diagram for csPath:

Public Methods | |
| csPath (int p) | |
| Create a path with p points. | |
| virtual | ~csPath () |
| Destroy the path. | |
| void | SetPositionVectors (csVector3 *v) |
| Set the position vectors (first three dimensions of the cubic spline). | |
| void | SetUpVectors (csVector3 *v) |
| Set the up vectors (dimensions 3 to 5). | |
| void | SetForwardVectors (csVector3 *v) |
| Set the forward vectors (dimensions 6 to 8). | |
| void | SetPositionVector (int idx, const csVector3 &v) |
| Set one position vector. | |
| void | SetUpVector (int idx, const csVector3 &v) |
| Set one up vector. | |
| void | SetForwardVector (int idx, const csVector3 &v) |
| Set one forward vector. | |
| void | GetPositionVector (int idx, csVector3 &v) |
| Get one position vector. | |
| void | GetUpVector (int idx, csVector3 &v) |
| Get one up vector. | |
| void | GetForwardVector (int idx, csVector3 &v) |
| Get one forward vector. | |
| void | GetInterpolatedPosition (csVector3 &pos) |
| Get the interpolated position. | |
| void | GetInterpolatedUp (csVector3 &pos) |
| Get the interpolated up vector. | |
| void | GetInterpolatedForward (csVector3 &pos) |
| Get the interpolated forward vector. | |
An object or camera can use this object to trace a path in 3D. This is particularly useful in combination with csReversibleTransform::LookAt().