Document, plugin and sample capx are included.
Demo
- Click to put feed (green box). Bird which found feed would try to eat it. ( action: Apply force toward position )
- Bird would avoid purple box. ( action: Separation )
- Bird would do flocking if it had not found any feed. ( action: Cohesion, action: Alignment, action; Separation )
Compare with boids behavior
The main different between rex_boid behavior and boids behavior is-
older boids behavior would control the position and angle directly, this new one only provide angle of steering force. User needs to apply this into its AI behavior. In this demo, each sprite is controlled by car + solid behavior.