Recast.js
    Preparing search index...

    Interface AgentOptions

    Options for adding a crowd agent via RecastModule.addAgent.

    interface AgentOptions {
        position: Vec3;
        radius: number;
        height: number;
        maxAcceleration: number;
        maxSpeed: number;
        updateFlags?: number;
        separationWeight?: number;
    }
    Index

    Properties

    position: Vec3

    Agent position

    radius: number

    Agent radius

    height: number

    Agent height

    maxAcceleration: number

    Maximum allowed acceleration

    maxSpeed: number

    Maximum allowed speed.

    updateFlags?: number

    Bitmask of CROWD_* flags. Defaults to all flags enabled.

    separationWeight?: number

    How aggresive the agent manager should be at avoiding collisions with this agent. [Limit: >= 0]. A higher value will result in agents trying to stay farther away from each other at the cost of more difficult steering in tight spaces.