Navigation 3D

Navigation 3D

The navigation module 3D drives your agents to reach an assigned target point in the 3D space.

 


Attributes

Attributes

Type

Overridable

Description

Attributes

Type

Overridable

Description

targetMode

int

no

The mode to select target points. Possible choices: "Target position" (0), "Random Target Point" (1), "Target Position Sequence" (2)

alignAtInitFrame

bool

no

The agents will be driven by this curve field only at the first frame of the simulation when this flag is turned off.

computepathAtEveryFrame

bool

no

If on, the module will compute the path at every frame

debug

bool

no

Enables module debug drawing.

maxTurnAngle

double

no

The max turn angle.

navMesh

string

no

The navigation mesh name

targetMetadataName

string

no

A vector3 metadata name which will drive the target position of the agents. If this is defined and the metadata exists, the targetPosition will be ignored.

targetPosition

vector3

yes

The target position.

targetRadius

double

no

When the agent distance to the target position is less than this value, the targetTriggerdMetadata will be set.

targetTriggerMetadataName

string

no

The target metadata name.

targetTriggerMetadataValue

double

no

The value to be assigned to the target metadata. Metadata types supported are bool, double and int.

weight

double

yes

Weight

findNewTargetPointOnReach

bool

no

Finds a new random target point once the target is reached. Only works with "Target Position" and "Random Target Point" modes.

findTargetPointRadius

double

no

The radius used for finding new random target points.

targetPositionSequence

vector3Array

no

The target position sequence.

findBestTargetAtInitSimulation

bool

no

If on, the agents will point to the closest facing target at the first frame, if they are not facing any target they will point to the closest one

findOptimalTargetPoint

bool

no

Finds the closest point on the sphere around the target point to avoid all agents reaching exactly the same point

hemisphereArea

int

no

Specifies the hemisphere area of the imaginary sphere where new target points are found: whole (0); positive (1); negative (2)


 

 

Copyright © 2017, Toolchefs LTD.