Loose emergent group behavior using cohesion and optional alignment.
Install via recast.withPlugin(FlockGroup), then use recast.createFlockGroup(options).
recast.withPlugin(FlockGroup)
recast.createFlockGroup(options)
Set the target destination for the whole flock.
Add an agent to the flock.
Remove an agent from the flock.
Stop updating and clean up event listeners.
Static
Register this plugin on a recast instance. Called internally by withPlugin.
withPlugin
Weight of the cohesion force.
Weight of the alignment force.
Cohesion radius.
Loose emergent group behavior using cohesion and optional alignment.
Install via
recast.withPlugin(FlockGroup), then userecast.createFlockGroup(options).