docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Lerp

    Lerp(in Pose, in Pose, float)

    Interpolate between two Poses. Position is linearly interpolated and rotation is spherically interpolated.

    Declaration
    public static Pose Lerp(in Pose a, in Pose b, float step)
    Parameters
    Type Name Description
    Pose a

    Initial Pose

    Pose b

    Final Pose

    float step

    Step size between [0, 1]

    Returns
    Type Description
    Pose

    Interpolated Pose.

    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)