Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions INSTRUCTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function rule1(Boid boid)
endif
end

perceived_center /= N-1
perceived_center /= number_of_neighbors

return (perceived_center - boid.position) * rule1Scale
end
Expand Down Expand Up @@ -122,7 +122,7 @@ function rule3(Boid boid)
endif
end

perceived_velocity /= N-1
perceived_velocity /= number_of_neighbors

return perceived_velocity * rule3Scale
end
Expand Down