This can be used to allow adding actors into the Crowd Avoidance system.

For a full example of how to implement this interface, see How to make crowd avoidance avoid the player or other types of actors

Basic overview

For a basic implementation, you should override the following functions:

  • GetCrowdAgentLocation: Should return the actor’s current position
  • GetCrowdAgentVelocity: Should return the actor’s current velocity
  • GetCrowdAgentCollisions: Return the actor’s collision capsule size and radius
  • GetCrowdAgentMaxSpeed: Return the maximum speed the actor can move at

You may be able to omit some of these, but it will reduce the accuracy of avoidance. The interface contains many other functions as well, but they are not needed unless you want to do more advanced things.