Method SteerRootMotion
SteerRootMotion(Trajectory, float, float, float, float)
Returns the interpolated transform between the root delta transform from Kinematica binary for the current frame, and the desired delta transform.
Declaration
public AffineTransform SteerRootMotion(Trajectory desiredTrajectory, float translationWeight, float rotationWeight, float startSpeed = 0, float endSpeed = 0.15)
Parameters
Type | Name | Description |
---|---|---|
Trajectory | desiredTrajectory | Desired trajectory that will be sampled from time 0 to in order to compute the desired delta transform
|
float | translationWeight | Interpolation weight between the root delta position at 0, and the desired delta position at 1 |
float | rotationWeight | Interpolation weight between the root delta rotation at 0, and the desired delta rotation at 1 |
float | startSpeed | Root speed (m/s) at which steering will start to be effective, steering weight will then increase linearly as root speed increases toward
|
float | endSpeed | Root speed (m/s) at which steering will be fully effective |
Returns
Type | Description |
---|---|
AffineTransform |