public setAgentDefaults ( float neighborDist, int maxNeighbors, float timeHorizon, float timeHorizonObst, float radius, float maxSpeed, Vector2 velocity ) : void | ||
neighborDist | float | The default maximum distance (center point * to center point) to other agents a new agent takes into account in * the navigation. The larger this number, the longer he running time of * the simulation. If the number is too low, the simulation will not be * safe. Must be non-negative. |
maxNeighbors | int | The default maximum number of other agents * a new agent takes into account in the navigation. The larger this * number, the longer the running time of the simulation. If the number * is too low, the simulation will not be safe. |
timeHorizon | float | The default minimal amount of time for * which a new agent's velocities that are computed by the simulation * are safe with respect to other agents. The larger this number, the * sooner an agent will respond to the presence of other agents, but the * less freedom the agent has in choosing its velocities. Must be * positive. |
timeHorizonObst | float | The default minimal amount of time for * which a new agent's velocities that are computed by the simulation * are safe with respect to obstacles. The larger this number, the * sooner an agent will respond to the presence of obstacles, but the * less freedom the agent has in choosing its velocities. Must be * positive. |
radius | float | The default radius of a new agent. Must be * non-negative. |
maxSpeed | float | The default maximum speed of a new agent. Must * be non-negative. |
velocity | Vector2 | The default initial two-dimensional linear * velocity of a new agent. |
return | void |