Polarith AI
1.8

◆ PresetVelocityType

enum PresetVelocityType
strong

Primarily used in AIMSteeringBehaviour to determine the default forward direction of an agent.

A suitable direction is dependent on your scenario. For example, a 2D scenario would probably require the Up vector as forward direction as against a 3D scenario would probably need the Forward vector instead.

Enumerator
None 

Indicates that no preset velocity is used at all.

Either the behaviour does not need this information or it has a valid velocity source, like a rigidbody or an AIMSteeringTag.

Automatic 

Indicates that the system itself should detect which direction should be used.

This decision is dependent on the Sensor of the corresponding AIMContext: Up for VectorProjectionType.PlaneXY and Forward for VectorProjectionType.PlaneXZ.

Up 

Sets UnityEngine.Vector3.up as the preset forward direction.

Down 

Sets UnityEngine.Vector3.down as the preset forward direction.

Forward 

Sets UnityEngine.Vector3.forward as the preset forward direction.

Back 

Sets UnityEngine.Vector3.back as the preset forward direction.

Left 

Sets UnityEngine.Vector3.left as the preset forward direction.

Right 

Sets UnityEngine.Vector3.right as the preset forward direction.

Imprint