Method GetRootVelocity
GetRootVelocity(float, float)
Calculates the root velocity along the current trajectory at a sampling time in seconds passed as argument.
Declaration
public float3 GetRootVelocity(float sampleTimeInSeconds, float timeHorizon)
Parameters
| Type | Name | Description |
|---|---|---|
| float | sampleTimeInSeconds | The sampling time in seconds. |
| float | timeHorizon | Time horizon in seconds over which the velocity should be approximated. |
Returns
| Type | Description |
|---|---|
| float3 | Velocity in meters per second subject to the sampling time passed as argument. |