Go To Target

A GotoTarget locator is a locator which can be used as a target in a Go To Behavior.

Creating a GotoTarget locator can be performed through the following options:

  • Crowd Shelf: 
  • Crowd Menu: GotoTarget Locator
  • MEL command: glmGotoTargetLocatorCmd;

 

Configuration

A GoToTarget Locator defines the following attributes:
 
Attributes of a GoToTarget Locator
 
TargetId unique id of the target. Computed at the creation of the target
Radius radius of the Target Locator. It should not be changed by scaling the locator.
Slots number of different target points this target will generate. Slots can be useful to scatter a group of Entity around a target randomly
Scatter

percentage of the radius inside which target points will be generated. If set to 0, the avoidance target will be the 3D position of the target object. Else, a certain quantity (controlled by the "Slots" attribute) of target points will be generated inside a zone which radius is defined by the Scatter value.

LEFT: 1 slot and 0 scatter - MIDDLE 10 slots and 0.5 scatter - RIGHT 100 slots and 1.0 scatter
 
A GotoTarget Locator is created in (0, 0, 0). It can be moved with Maya Move tool, and must be positioned on a valid navigation mesh zone. Height is adjusted internally to the Terrain in use, when target is requested, so a precise height adjustment is not required.