Struct TrajectoryPrediction
Allows the generation of a desired future trajecory.
Namespace: Unity.Kinematica
Assembly: solution.dll
Syntax
public struct TrajectoryPrediction
Remarks
Allows the generation of a desired future trajecory by
predicting the future root movement over time subject
to a number of characteristics.
var prediction = TrajectoryPrediction.Create(
ref synthesizer, desiredVelocity, desiredRotation,
trajectory, velocityPercentage, forwardPercentage);
prediction.Generate();
Properties
Name | Description |
---|---|
Advance | Generates the next root transform of the trajectory. |
Transform | Allows to get and set the current root transform during the trajectory generate. |
Methods
Name | Description |
---|---|
Create(ref Motion |
Creates a trajectory prediction instance. |
Create(ref Motion |
Creates a trajectory prediction instance. |
Create |
|
Generate() | Convenience method that generates the entire trajectory in a single call. It can be used instead of manually calling Advance() and Push() in case no root transform modification is required. |
Push(Affine |
Stores the root transform passed as argument as the next trajectory element in the internal buffer. This method can be used in conjunction with Advance(). |