diff options
| author | _Tradam <[email protected]> | 2021-12-23 03:39:35 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-23 03:39:35 -0500 |
| commit | f70283e5ad5f5a5744ca0695a184f72f88803aca (patch) | |
| tree | f9a182ccbc6ade03524f70f4483244a2e86ae6d1 /app/components/rules | |
| parent | 18f869d18fac469e44f9a6a4772494a262c1b0cb (diff) | |
| download | SteelWings-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.rb | 2 | ||||
| -rw-r--r-- | app/components/rules/cohesion.rb | 2 | ||||
| -rw-r--r-- | app/components/rules/decay_speed.rb | 2 | ||||
| -rw-r--r-- | app/components/rules/follow.rb | 2 | ||||
| -rw-r--r-- | app/components/rules/minimum_speed.rb | 2 | ||||
| -rw-r--r-- | app/components/rules/separation.rb | 2 |
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) |
