Class BehaviorTreeMoveToNode
Moves an actor to the specific target location. Uses pathfinding on navmesh.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/AI/BehaviorTreeNodes.h
Syntax
public class BehaviorTreeMoveToNode : public BehaviorTreeNode
Methods
GetAgentSize(Actor* agent, float& outRadius, float& outHeight)
Declaration
public virtual void GetAgentSize(Actor* agent, float& outRadius, float& outHeight) const
Parameters
Actor
agent
|
float
outRadius
|
float
outHeight
|
GetDebugInfo(const BehaviorUpdateContext& context)
Gets the node debug state text (multiline). Used in Editor-only to display nodes state. Can be called without valid Behavior/Knowledge/Memory to display default debug info (eg. node properties).
Declaration
public virtual String GetDebugInfo(const BehaviorUpdateContext& context) const override
Parameters
BehaviorUpdateContext
context
Behavior context data. |
Returns
String
Debug info text (multiline). |
Overrides
GetNavMesh(Actor* agent)
GetStateSize()
Gets the node instance state size. A chunk of the valid memory is passed via InitState to setup that memory chunk (one per-behavior).
Declaration
public virtual int32 GetStateSize() const override
Returns
int32
|
Overrides
InitState(const BehaviorUpdateContext& context)
Initializes node instance state. Called when starting logic simulation for a given behavior. Call constructor of the state container.
Declaration
public virtual void InitState(const BehaviorUpdateContext& context) override
Parameters
BehaviorUpdateContext
context
Behavior update context data. |
Overrides
Move(Actor* agent, const Vector3& move)
Declaration
public virtual bool Move(Actor* agent, const Vector3& move) const
Parameters
Actor
agent
|
Vector3
move
|
Returns
bool
|
ReleaseState(const BehaviorUpdateContext& context)
Cleanups node instance state. Called when stopping logic simulation for a given behavior. Call destructor of the state container.
Declaration
public virtual void ReleaseState(const BehaviorUpdateContext& context) override
Parameters
BehaviorUpdateContext
context
Behavior update context data. |
Overrides
Update(const BehaviorUpdateContext& context)
Updates node logic.
Declaration
public virtual BehaviorUpdateResult Update(const BehaviorUpdateContext& context) override
Parameters
BehaviorUpdateContext
context
Behavior update context data. |
Returns
BehaviorUpdateResult
Operation result enum. |