summaryrefslogtreecommitdiffhomepage
path: root/app/components/boid.rb
diff options
context:
space:
mode:
author_Tradam <[email protected]>2021-12-18 22:51:31 -0500
committerGitHub <[email protected]>2021-12-18 22:51:31 -0500
commit55abb3c7534e57f8da270a7e77b16f3f06ca3712 (patch)
treeb40824f6d6588ebd5d7db2e7bfa6312d117ee419 /app/components/boid.rb
parent43a07949acca8a11a3aee6ea915a9a3e00b373ab (diff)
parent32a5e203e092dc22e7d1a34641b10692abe14702 (diff)
downloadSteelWings-55abb3c7534e57f8da270a7e77b16f3f06ca3712.tar.gz
SteelWings-55abb3c7534e57f8da270a7e77b16f3f06ca3712.zip
Merge branch 'master' into menu-dev
Diffstat (limited to 'app/components/boid.rb')
-rw-r--r--app/components/boid.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/components/boid.rb b/app/components/boid.rb
index 060f9c3..3358559 100644
--- a/app/components/boid.rb
+++ b/app/components/boid.rb
@@ -1,5 +1,6 @@
FF::Cmp.new('Boid',
- x: 0, y: 0,
- vx: 0, vy: 0,
- cx: 0, cy: 0,
- angle: 0)
+ x: 0, y: 0, # position
+ vx: 0, vy: 0, # velocity
+ cx: 0, cy: 0, # change in velocity
+ w: 0, h: 0, # width and height
+ angle: 0) # angle of velocity