Method Create
Create(ref MotionSynthesizer, float3, quaternion, Trajectory, float, float)
Creates a trajectory prediction instance.
Declaration
public static TrajectoryPrediction Create(ref MotionSynthesizer synthesizer, float3 desiredLinearVelocity, quaternion desiredRotation, Trajectory trajectory, float velocityFactor, float rotationFactor)
Parameters
| Type | Name | Description |
|---|---|---|
| MotionSynthesizer | synthesizer | Reference to the motion synthesizer to generate the trajectory for. |
| float3 | desiredLinearVelocity | Desired linear velocity in meters per second in character space. |
| quaternion | desiredRotation | Desired orientation in character space. |
| Trajectory | trajectory | Memory array that the generated trajectory should be written to. |
| float | velocityFactor | Factor that determines when the desired velocity w.r.t. the time horizon should be reached. |
| float | rotationFactor | Factor that determines when the desired rotation w.r.t. the time horizon should be reached. |
Returns
| Type | Description |
|---|---|
| TrajectoryPrediction | The newly created trajectory prediction instance. |
Create(ref MotionSynthesizer, float3, quaternion, Trajectory, float, float, float3)
Creates a trajectory prediction instance.
Declaration
public static TrajectoryPrediction Create(ref MotionSynthesizer synthesizer, float3 desiredLinearVelocity, quaternion desiredRotation, Trajectory trajectory, float velocityFactor, float rotationFactor, float3 currentLinearVelocity)
Parameters
| Type | Name | Description |
|---|---|---|
| MotionSynthesizer | synthesizer | Reference to the motion synthesizer to generate the trajectory for. |
| float3 | desiredLinearVelocity | Desired linear velocity in meters per second in character space. |
| quaternion | desiredRotation | Desired orientation in character space. |
| Trajectory | trajectory | Memory array that the generated trajectory should be written to. |
| float | velocityFactor | Factor that determines when the desired velocity w.r.t. the time horizon should be reached. |
| float | rotationFactor | Factor that determines when the desired rotation w.r.t. the time horizon should be reached. |
| float3 | currentLinearVelocity | Current linear velocity in meters per second in character space |
Returns
| Type | Description |
|---|---|
| TrajectoryPrediction | The newly created trajectory prediction instance. |