Kemena3D
Loading...
Searching...
No Matches
kemena::kNavAgentConfig Struct Reference

Per-agent parameters passed to dtCrowd on creation. More...

#include <knavagent.h>

Public Attributes

float radius = 0.6f
 Agent cylinder radius (m).
float height = 2.0f
 Agent cylinder height (m).
float maxAcceleration = 8.0f
 Maximum acceleration (m/s²).
float maxSpeed = 3.5f
 Maximum speed (m/s).
float pathOptRange = 30.0f
float separationWeight = 2.0f
bool anticipateTurns = true
bool optimizeVis = true
 Optimise path visibility.
bool optimizeTopo = true
 Optimise path topology.
bool obstacleAvoidance = true
 Use local steering avoidance.
bool separation = false
 Enable crowd separation.

Detailed Description

Per-agent parameters passed to dtCrowd on creation.

Most values can be updated at runtime via kNavAgent setters.

Member Data Documentation

◆ anticipateTurns

bool kemena::kNavAgentConfig::anticipateTurns = true

If true the agent will be pushed away from neighbours.

◆ height

float kemena::kNavAgentConfig::height = 2.0f

Agent cylinder height (m).

◆ maxAcceleration

float kemena::kNavAgentConfig::maxAcceleration = 8.0f

Maximum acceleration (m/s²).

◆ maxSpeed

float kemena::kNavAgentConfig::maxSpeed = 3.5f

Maximum speed (m/s).

◆ obstacleAvoidance

bool kemena::kNavAgentConfig::obstacleAvoidance = true

Use local steering avoidance.

◆ optimizeTopo

bool kemena::kNavAgentConfig::optimizeTopo = true

Optimise path topology.

◆ optimizeVis

bool kemena::kNavAgentConfig::optimizeVis = true

Optimise path visibility.

◆ pathOptRange

float kemena::kNavAgentConfig::pathOptRange = 30.0f

How closely to follow the path before considering a waypoint reached.

◆ radius

float kemena::kNavAgentConfig::radius = 0.6f

Agent cylinder radius (m).

◆ separation

bool kemena::kNavAgentConfig::separation = false

Enable crowd separation.

◆ separationWeight

float kemena::kNavAgentConfig::separationWeight = 2.0f

Separation weight when agents are adjacent. 0 = no separation.


The documentation for this struct was generated from the following file: