Struct Trajectory | Kinematica | 0.8.0-preview
docs.unity.cn
    Show / Hide Table of Contents

    Struct Trajectory

    Data type to be used in a task graph that represents a trajectory.

    Namespace: Unity.Kinematica
    Syntax
    [Data("Trajectory", DataFlags.SelfInputOutput)]
    public struct Trajectory : IDebugObject, Serializable, IDisposable, IDebugDrawable

    Fields

    allocator

    Declaration
    public Allocator allocator
    Field Value
    Type Description
    Allocator

    transforms

    Declaration
    public NativeArray<AffineTransform> transforms
    Field Value
    Type Description
    NativeArray<AffineTransform>

    Properties

    debugIdentifier

    Declaration
    public DebugIdentifier debugIdentifier { get; set; }
    Property Value
    Type Description
    DebugIdentifier
    Implements
    IDebugObject.debugIdentifier

    Item[Int32]

    Declaration
    public AffineTransform this[int index] { get; set; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    AffineTransform

    Length

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    Int32

    Methods

    Create(Int32, Allocator)

    Declaration
    public static Trajectory Create(int length, Allocator allocator)
    Parameters
    Type Name Description
    Int32 length
    Allocator allocator
    Returns
    Type Description
    Trajectory

    Dispose()

    Declaration
    public void Dispose()

    Draw(Camera, ref MotionSynthesizer, DebugMemory, SamplingTime, ref DebugDrawOptions)

    Declaration
    public void Draw(Camera camera, ref MotionSynthesizer synthesizer, DebugMemory debugMemory, SamplingTime debugSamplingTime, ref DebugDrawOptions options)
    Parameters
    Type Name Description
    Camera camera
    MotionSynthesizer synthesizer
    DebugMemory debugMemory
    SamplingTime debugSamplingTime
    DebugDrawOptions options
    Implements
    IDebugDrawable.Draw(Camera, ref MotionSynthesizer, DebugMemory, SamplingTime, ref DebugDrawOptions)

    ReadFromStream(Buffer)

    Declaration
    public void ReadFromStream(Buffer buffer)
    Parameters
    Type Name Description
    Buffer buffer
    Implements
    Serializable.ReadFromStream(Buffer)

    WriteToStream(Buffer)

    Declaration
    public void WriteToStream(Buffer buffer)
    Parameters
    Type Name Description
    Buffer buffer
    Implements
    Serializable.WriteToStream(Buffer)

    Operators

    Implicit(Trajectory to NativeSlice<AffineTransform>)

    Declaration
    public static implicit operator NativeSlice<AffineTransform>(Trajectory trajectory)
    Parameters
    Type Name Description
    Trajectory trajectory
    Returns
    Type Description
    NativeSlice<AffineTransform>
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Monday, August 3, 2020