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

    Struct NavigationPath

    Namespace: Unity.Kinematica
    Syntax
    [Data("Navigation Path", DataFlags.None)]
    public struct NavigationPath : IDisposable, IDebugObject, IDebugDrawable, Serializable

    Fields

    outputTrajectory

    Declaration
    [Output("Trajectory", OutputFlags.OnlyAcceptSelfNode)]
    public DebugIdentifier outputTrajectory
    Field Value
    Type Description
    DebugIdentifier

    Properties

    debugIdentifier

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

    GoalReached

    Declaration
    public bool GoalReached { get; }
    Property Value
    Type Description
    Boolean

    IsBuilt

    Declaration
    public bool IsBuilt { get; }
    Property Value
    Type Description
    Boolean

    IsValid

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    Boolean

    NavParams

    Declaration
    public NavigationParams NavParams { get; }
    Property Value
    Type Description
    NavigationParams

    NextControlPoint

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

    NumControlPoints

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

    Methods

    Build()

    Declaration
    public void Build()

    Create(float3[], AffineTransform, NavigationParams, Allocator)

    Declaration
    public static NavigationPath Create(float3[] controlPoints, AffineTransform startTransform, NavigationParams navParams, Allocator allocator)
    Parameters
    Type Name Description
    float3[] controlPoints
    AffineTransform startTransform
    NavigationParams navParams
    Allocator allocator
    Returns
    Type Description
    NavigationPath

    CreateInvalid()

    Declaration
    public static NavigationPath CreateInvalid()
    Returns
    Type Description
    NavigationPath

    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)

    DrawPath()

    Declaration
    public void DrawPath()

    EvaluatePointAtDistance(Single)

    Declaration
    public SplinePoint EvaluatePointAtDistance(float distance)
    Parameters
    Type Name Description
    Single distance
    Returns
    Type Description
    SplinePoint

    GenerateTrajectory(ref MotionSynthesizer, ref Trajectory)

    Declaration
    public void GenerateTrajectory(ref MotionSynthesizer synthesizer, ref Trajectory trajectory)
    Parameters
    Type Name Description
    MotionSynthesizer synthesizer
    Trajectory trajectory

    ReadFromStream(Buffer)

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

    UpdateAgentTransform(AffineTransform)

    Declaration
    public bool UpdateAgentTransform(AffineTransform agentTransform)
    Parameters
    Type Name Description
    AffineTransform agentTransform
    Returns
    Type Description
    Boolean

    WriteToStream(Buffer)

    Declaration
    public void WriteToStream(Buffer buffer)
    Parameters
    Type Name Description
    Buffer buffer
    Implements
    Serializable.WriteToStream(Buffer)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Monday, August 3, 2020