Method ComputeTrajectory
ComputeTrajectory(int, List<Pose>)
Creates a list of local-to-world poses of the trajectory, evaluated uniformly in time.
Declaration
public void ComputeTrajectory(int trajectoryCount, List<Pose> trajectory)
Parameters
Type | Name | Description |
---|---|---|
int | trajectoryCount | The number of poses to evaluate along the trajectory. |
List<Pose> | trajectory | The evaluated poses along the trajectory, in world space. |
Remarks
Never call ComputeTrajectory during Update, as all objects must have moved first before computing the world trajectory. Call ComputeTrajectory in LateUpdate instead. The contents of the given trajectory list are ignored, and are passed in only to allow reusing its memory if possible.