summaryrefslogtreecommitdiffhomepage
path: root/app/components/rules
diff options
context:
space:
mode:
author_Tradam <[email protected]>2021-12-23 03:39:35 -0500
committerGitHub <[email protected]>2021-12-23 03:39:35 -0500
commitf70283e5ad5f5a5744ca0695a184f72f88803aca (patch)
treef9a182ccbc6ade03524f70f4483244a2e86ae6d1 /app/components/rules
parent18f869d18fac469e44f9a6a4772494a262c1b0cb (diff)
downloadSteelWings-f70283e5ad5f5a5744ca0695a184f72f88803aca.tar.gz
SteelWings-f70283e5ad5f5a5744ca0695a184f72f88803aca.zip
cleaned up boid rules, changed how strength works (#8)
Diffstat (limited to 'app/components/rules')
-rw-r--r--app/components/rules/alignment.rb2
-rw-r--r--app/components/rules/cohesion.rb2
-rw-r--r--app/components/rules/decay_speed.rb2
-rw-r--r--app/components/rules/follow.rb2
-rw-r--r--app/components/rules/minimum_speed.rb2
-rw-r--r--app/components/rules/separation.rb2
6 files changed, 6 insertions, 6 deletions
diff --git a/app/components/rules/alignment.rb b/app/components/rules/alignment.rb
index a62cc78..0542aa7 100644
--- a/app/components/rules/alignment.rb
+++ b/app/components/rules/alignment.rb
@@ -1,2 +1,2 @@
FF::Cmp.new('BoidsAlignment',
- strength: 10)
+ strength: 1)
diff --git a/app/components/rules/cohesion.rb b/app/components/rules/cohesion.rb
index 6acd5ea..ef66b33 100644
--- a/app/components/rules/cohesion.rb
+++ b/app/components/rules/cohesion.rb
@@ -1,2 +1,2 @@
FF::Cmp.new('BoidsCohesion',
- strength: 100)
+ strength: 1)
diff --git a/app/components/rules/decay_speed.rb b/app/components/rules/decay_speed.rb
index 83a3938..6ff00b0 100644
--- a/app/components/rules/decay_speed.rb
+++ b/app/components/rules/decay_speed.rb
@@ -1,2 +1,2 @@
FF::Cmp.new('DecaySpeed',
- strength: 0.8)
+ strength: 1)
diff --git a/app/components/rules/follow.rb b/app/components/rules/follow.rb
index 868d44f..5a4968d 100644
--- a/app/components/rules/follow.rb
+++ b/app/components/rules/follow.rb
@@ -1,3 +1,3 @@
FF::Cmp.new('Follow',
:target,
- strength: 100)
+ strength: 1)
diff --git a/app/components/rules/minimum_speed.rb b/app/components/rules/minimum_speed.rb
index 2e0e7fe..035ce9b 100644
--- a/app/components/rules/minimum_speed.rb
+++ b/app/components/rules/minimum_speed.rb
@@ -1,3 +1,3 @@
FF::Cmp.new('BoidMinimumSpeed',
- speed: 5)
+ speed: 1)
diff --git a/app/components/rules/separation.rb b/app/components/rules/separation.rb
index 5298623..594eedb 100644
--- a/app/components/rules/separation.rb
+++ b/app/components/rules/separation.rb
@@ -1,3 +1,3 @@
FF::Cmp.new('BoidsSeparation',
- :strength,
+ strength: 1,
distance: 500)