Polarith AI
1.8

◆ UsePresetVelocity

bool UsePresetVelocity = false

If true, a game object's rotation and PresetVelocity direction is used to approximate its actual velocity.

This is especially useful for velocity-dependent behaviours like AIMAvoid and if no other sources for a valid velocity vector can be provided. Moreover, such preset forward direction has the advantage to be more stable in contrast to other possible velocity sources.

Other valid sources for obtaining a movement velocity are the AIMSteeringTag.TrackVelocity option or to make use of a Rigidbody respectively a Rigidbody2D.

Imprint