Skip to main content

compute_steering

Function compute_steering 

Source
pub fn compute_steering(
    boid: &mut Boid,
    neighbors: &[FlockNeighbor],
    obstacles: &[Obstacle],
    leader: Option<Vec3>,
    predators: &[Vec3],
    config: &FlockConfig,
) -> Vec3
Expand description

Compute all steering forces for a single boid and return the total.