Skip to content

Viewing angle on the perception radius #7

Description

@LouisLafontaine

Implement a viewing angle on the perception radius, eg :
http://www.red3d.com/cwr/boids/images/neighborhood.gif
Don't forget to also modify the way the percetion radius is drawn on screen.

I think that to solve this, we simply need to add a check in the flock method, next to the distance < perceptionRadius checking if the absolute value of the angle between the boid's velocity and the director vector of the line between the boid and the other boid, is inferior the to the viewing angle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions