docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateTrajectoryFragment

    CreateTrajectoryFragment(MetricIndex, SamplingTime)

    Creates a trajectory fragment from a sampling time.

    Declaration
    public Binary.TrajectoryFragment CreateTrajectoryFragment(Binary.MetricIndex metricIndex, SamplingTime samplingTime)
    Parameters
    Type Name Description
    Binary.MetricIndex metricIndex

    The metric defining the trajectory fragment layout.

    SamplingTime samplingTime

    The sampling time that the trajectory fragment should be created for.

    Returns
    Type Description
    Binary.TrajectoryFragment

    The resulting trajectory fragment.

    CreateTrajectoryFragment(MetricIndex, NativeSlice<AffineTransform>)

    Creates a trajectory fragment from sequence of root transforms.

    Declaration
    public Binary.TrajectoryFragment CreateTrajectoryFragment(Binary.MetricIndex metricIndex, NativeSlice<AffineTransform> trajectory)
    Parameters
    Type Name Description
    Binary.MetricIndex metricIndex

    The metric defining the trajectory fragment layout.

    NativeSlice<AffineTransform> trajectory

    Sequence of root transforms in character space.

    Returns
    Type Description
    Binary.TrajectoryFragment

    The resulting trajectory fragment.

    Remarks

    The root transforms passed as argument are expected to be relative to the world origin, i.e. in character space.

    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)