docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    _deltaTime
    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

    endSpeed
    float endSpeed

    Root speed (m/s) at which steering will be fully effective

    Returns
    Type Description
    AffineTransform
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)