summaryrefslogtreecommitdiffhomepage
path: root/lib/rules/alignment.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-08-09 10:32:45 -0400
committerrealtradam <[email protected]>2021-08-09 10:32:45 -0400
commitc1eb3f4c18404d4921adc3d38dfa7438a47f4aa0 (patch)
treee0150085494d014dfbcdc1e6e2314fde62c9af1c /lib/rules/alignment.rb
parent501ec02e894865836f2960b0bbc16b3448e3707f (diff)
downloadruboids-c1eb3f4c18404d4921adc3d38dfa7438a47f4aa0.tar.gz
ruboids-c1eb3f4c18404d4921adc3d38dfa7438a47f4aa0.zip
initial piranha
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