From 4e909c6b44794b76ef3a98c032ea90204b673f85 Mon Sep 17 00:00:00 2001 From: realtradam Date: Mon, 9 Aug 2021 05:17:42 -0400 Subject: cohesion and seperation --- lib/00-define.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/00-define.rb (limited to 'lib/00-define.rb') diff --git a/lib/00-define.rb b/lib/00-define.rb new file mode 100644 index 0000000..b0606a2 --- /dev/null +++ b/lib/00-define.rb @@ -0,0 +1,16 @@ +FF::Stg.add FF::Scn.new('Default') +FF::Stg.add FF::Scn.new('BoidCalculations') + +FelFlame::Components.new('Boids', + # holds the object to render + #:obj, + # holds the vector to render + #:vect, + # the current position + x: 0, y: 0, + # current velocity + vx: 0, vy: 0, + # calculated velocity change for next frame + cx: 0, cy: 0) +FelFlame::Components.new('BoidVisuals', + :obj, :vect) -- cgit v1.2.3