docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ComputeTrajectory

    ComputeTrajectory(int, List<Pose>)

    Creates a list of local-to-world poses of the trajectory, evaluated uniformly in time.

    Declaration
    public void ComputeTrajectory(int trajectoryCount, List<Pose> trajectory)
    Parameters
    Type Name Description
    int trajectoryCount

    The number of poses to evaluate along the trajectory.

    List<Pose> trajectory

    The evaluated poses along the trajectory, in world space.

    Remarks

    Never call ComputeTrajectory during Update, as all objects must have moved first before computing the world trajectory. Call ComputeTrajectory in LateUpdate instead. The contents of the given trajectory list are ignored, and are passed in only to allow reusing its memory if possible.

    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)