Skip to content

Potential division by zero in applyRules if separationCount is zero. #4

@ColePoppleton

Description

@ColePoppleton

If no boids are within the separation radius, separationCount will be zero. The line separation = (separation / separationCount).normalized() * separationWeight; will cause a division by zero.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions