Compare commits
5 Commits
c5b2c33ed8
...
6520435afa
Author | SHA1 | Date |
---|---|---|
|
6520435afa | 8 years ago |
|
85208e9063 | 8 years ago |
|
16bb851024 | 8 years ago |
|
adef9df7e6 | 8 years ago |
|
844e890605 | 8 years ago |
13 changed files with 154 additions and 108 deletions
@ -1,18 +1,15 @@ |
||||
import Animation from './animation'; |
||||
import Controls from './controls'; |
||||
import { BEHAVIOR } from './enums'; |
||||
|
||||
export default function(destroy$) { |
||||
const id = '3a'; |
||||
const config = { |
||||
id, |
||||
count: 5, |
||||
maxCount: 1000, |
||||
showAlignmentControl: true, |
||||
showCohesionControl: true, |
||||
showSeparationControl: true, |
||||
// showVisionGridControl: true
|
||||
maxCount: 10, |
||||
showVisionGridControl: true |
||||
}; |
||||
|
||||
const observables = Controls(destroy$, config); |
||||
new Animation(observables, id); |
||||
new Animation(observables, id, BEHAVIOR.COHESION).addHazards(); |
||||
} |
||||
|
@ -1,16 +1,15 @@ |
||||
import Animation from './animation'; |
||||
import Controls from './controls'; |
||||
import { BEHAVIOR } from './enums'; |
||||
|
||||
export default function(destroy$) { |
||||
const id = '3b'; |
||||
const config = { |
||||
id, |
||||
maxCount: 10, |
||||
showAlignmentControl: true, |
||||
showCohesionControl: true, |
||||
showSeparationControl: true |
||||
count: 200, |
||||
maxCount: 1000 |
||||
}; |
||||
|
||||
const observables = Controls(destroy$, config); |
||||
new Animation(observables, id).addHazards(); |
||||
new Animation(observables, id, BEHAVIOR.COHESION); |
||||
} |
||||
|
@ -0,0 +1,15 @@ |
||||
import Animation from './animation'; |
||||
import Controls from './controls'; |
||||
import { BEHAVIOR } from './enums'; |
||||
|
||||
export default function(destroy$) { |
||||
const id = '3c'; |
||||
const config = { |
||||
id, |
||||
count: 200, |
||||
maxCount: 1000 |
||||
}; |
||||
|
||||
const observables = Controls(destroy$, config); |
||||
new Animation(observables, id, BEHAVIOR.COHESION).addHazards(1); |
||||
} |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue