Module app:gfxboids - Boids demo for RMoX
Boids demo for RMoX. This provides an implementation of the boids demo program for RMoX
Requires: service:gfxwinsys service:fontengine
Index
-
Constant
INITIAL.COMFORT.ANGLE.DEGREES- Comfort angle -- this can't be greater than the vision angle -
Constant
INITIAL.COMFORT.RADIUS- Comfort radius -- defines minimum separation for comfort -
Constant
INITIAL.RENDER.EVERY- Render ratio (render every so many frames) -
Constant
INITIAL.VISION.ANGLE.DEGREES- Boids can only see from vision angle (VA/2) through 0 to -(VA/2), in the direction they are going -
Constant
INITIAL.VISION.RADIUS- How far you can see -- this must not be greater than 1.0 -
Protocol
NEURON- vector, one or more 'view', then 'force'-
Tag
force- vector; alarm; calm.down -
Tag
vector- vector; alarm; calm.down
-
Tag
-
Operator
+ (POSITION, POSITION)- POSITION operators and functions -
Operator
+ (POSITION, VECTOR)- (POSITION, VECTOR) --> POSITION operators -
Operator
+ (VECTOR, VECTOR)- VECTOR operators and functions -
Operator
- (VECTOR, POSITION)- (VECTOR, POSITION) --> VECTOR operators
Declarations
cons_gfxboids.occ:119Constant INITIAL.VISION.RADIUS
VAL REAL32 INITIAL.VISION.RADIUS
How far you can see -- this must not be greater than 1.0.
cons_gfxboids.occ:126Constant INITIAL.VISION.ANGLE.DEGREES
VAL REAL32 INITIAL.VISION.ANGLE.DEGREES
Boids can only see from vision angle (VA/2) through 0 to -(VA/2), in the direction they are going.
cons_gfxboids.occ:135Constant INITIAL.COMFORT.RADIUS
VAL REAL32 INITIAL.COMFORT.RADIUS
Comfort radius -- defines minimum separation for comfort. This should not be greater than the vision radius.
cons_gfxboids.occ:143Constant INITIAL.COMFORT.ANGLE.DEGREES
VAL REAL32 INITIAL.COMFORT.ANGLE.DEGREES
Comfort angle -- this can't be greater than the vision angle.
cons_gfxboids.occ:151Constant INITIAL.RENDER.EVERY
VAL INT INITIAL.RENDER.EVERY
Render ratio (render every so many frames)
cons_gfxboids.occ:175Operator + (VECTOR, VECTOR)
VECTOR INLINE FUNCTION "+" (VAL VECTOR a, b)
VECTOR operators and functions
cons_gfxboids.occ:184Operator + (POSITION, POSITION)
POSITION INLINE FUNCTION "+" (VAL POSITION p, VAL POSITION q)
POSITION operators and functions
cons_gfxboids.occ:193Operator + (POSITION, VECTOR)
POSITION INLINE FUNCTION "+" (VAL POSITION p, VAL VECTOR v)
(POSITION, VECTOR) --> POSITION operators
cons_gfxboids.occ:198Operator - (VECTOR, POSITION)
VECTOR INLINE FUNCTION "-" (VAL VECTOR v, VAL POSITION p)
(VECTOR, POSITION) --> VECTOR operators
cons_gfxboids.occ:284Protocol NEURON
PROTOCOL NEURON
vector, one or more 'view', then 'force'
cons_gfxboids.occ:286Tag vector
vector; VECTOR; INT; INT
vector; alarm; calm.down
cons_gfxboids.occ:288Tag force
force; VECTOR; INT; INT
vector; alarm; calm.down