Struct NavigationTask
Syntax
[Data("TrajectoryPath", "#2A3756", DataType.Flag.None)]
public struct NavigationTask : Task
Constructors
NavigationTask(ref MotionSynthesizer, Identifier<Trajectory>)
Declaration
public NavigationTask(ref MotionSynthesizer synthesizer, Identifier<Trajectory> trajectory)
Parameters
Fields
self
Declaration
public Identifier<NavigationTask> self
Field Value
synthesizer
Declaration
public MemoryRef<MotionSynthesizer> synthesizer
Field Value
trajectory
Declaration
[Output("Trajectory")]
public Identifier<Trajectory> trajectory
Field Value
Properties
GoalReached
Declaration
public bool GoalReached { get; }
Property Value
IsPathValid
Declaration
public bool IsPathValid { get; }
Property Value
NextControlPoint
Declaration
public int NextControlPoint { get; }
Property Value
Methods
Create(ref MotionSynthesizer, Identifier<Trajectory>)
Declaration
public static NavigationTask Create(ref MotionSynthesizer synthesizer, Identifier<Trajectory> trajectory)
Parameters
Returns
DrawPath()
Declaration
Execute()
Declaration
Returns
Implements
ExecuteSelf(ref TaskRef)
Declaration
public static Result ExecuteSelf(ref TaskRef self)
Parameters
Returns
FollowPath(float3[], NavigationParams)
Move agent toward first control point, and then move them along path made of controlPoints
until last control point
Declaration
public void FollowPath(float3[] controlPoints, NavigationParams navParams)
Parameters
Operators
Implicit(NavigationTask to Identifier<NavigationTask>)
Declaration
public static implicit operator Identifier<NavigationTask>(NavigationTask task)
Parameters
Returns