summaryrefslogtreecommitdiffhomepage
path: root/lib/rules/alignment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rules/alignment.rb')
-rw-r--r--lib/rules/alignment.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rules/alignment.rb b/lib/rules/alignment.rb
index b30683c..4072227 100644
--- a/lib/rules/alignment.rb
+++ b/lib/rules/alignment.rb
@@ -14,7 +14,7 @@ FF::Sys.new('Alignment', priority: 50) do
move_boid[0] /= boids_count - 1.0
move_boid[1] /= boids_count - 1.0
- boid_update.cx += (move_boid[0] - boid_update.vx) / $alignment
- boid_update.cy += (move_boid[1] - boid_update.vy) / $alignment
+ boid_update.cx += (move_boid[0] - boid_update.vx) / $config.alignment
+ boid_update.cy += (move_boid[1] - boid_update.vy) / $config.alignment
end
end