Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boid: Rename velocity to direction_vector #68

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 8, 2023

  1. Boid: Rename velocity to direction_vector

    Since the velocity was modelled as a unit vector, it only represents the direction, not the velocity (which is magnitude + direction).
    EwoutH committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    6656bcc View commit details
    Browse the repository at this point in the history
  2. Boid: Remove redundant division

    The division in the boid step is completely redundant, since in the next line the direction_vector will be normalized (to a unit vector) anyway.
    EwoutH committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    50c0cae View commit details
    Browse the repository at this point in the history