• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Introduction to AlchemyNavigation
  • Main components
    • Alchemy Navigation System
    • Faces Holder
    • Simple Agent
    • Movement Modifier
  • Building a surface
    • How it works
    • Bake from geometry
    • Debugging holders

Movement Modifier

The MovementModifier is a special abstract component that can modify the movement of the SimpleAgent by adding acceleration in a certain direction.

Avoidance Modifier

The AvoidanceModifier is a built-in MovementModifier component that provides a simple avoidance behavior.

To begin, add the AvoidanceModifier component to the agent's game object.

Inspector Property Description
Strength (Inherited) The ratio between the acceleration added by the modifier and the maximum acceleration of the SimpleAgent.
Radius The avoidance radius for the agent.
Height The avoidance height for the agent.
AvoidanceGroup The group to which the object belongs.

Agents avoid collisions with objects belonging to the same group as themselves. To create an AvoidanceGroup, right click on the project window and select from the list: AlchemyBow/Navigation/AvoidanceGroup.

Note

If you add the AvoidanceModifier component to non-agent game objects, actual agents will avoid them.

You should know

  • If you add the MovementModifier component via run-time scripts, you need to call ReloadMovementModifiers() on the target agent.
  • The AvoidanceModifier provides a very simple implementation of an avoidance behaviour. Movement modifiers allow you to create more sophisticated solutions with custom shapes or predictions. (For example, SimpleAgent implements the ISteeredBehaviour interface that can be used for predictions.)
  • Improve this Doc
In This Article
Back to top Generated by DocFX