You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
510 B
29 lines
510 B
const RAD = {
|
|
t45: Math.PI / 4,
|
|
t90: Math.PI / 2,
|
|
t180: Math.PI,
|
|
t270: 3 * Math.PI / 2,
|
|
t360: Math.PI * 2
|
|
};
|
|
|
|
const CONTROLS = {
|
|
ANIMATING: 'animating',
|
|
CIRCLE: 'circle',
|
|
COUNT: 'count',
|
|
RANDOMIZE: 'randomize',
|
|
SPEED: 'speed'
|
|
};
|
|
|
|
const BEHAVIOR = {
|
|
ALIGNMENT: 'alignment',
|
|
COHESION: 'cohesion',
|
|
FREE: 'free',
|
|
SEPARATION: 'separation'
|
|
};
|
|
|
|
const ENTITIES = {
|
|
PARTICLE: 'particle',
|
|
HAZARD: 'hazard'
|
|
};
|
|
|
|
export { BEHAVIOR, CONTROLS, ENTITIES, RAD };
|
|
|