parent
c5b2c33ed8
commit
844e890605
11 changed files with 80 additions and 66 deletions
@ -1,18 +1,15 @@ |
|||||||
import Animation from './animation'; |
import Animation from './animation'; |
||||||
import Controls from './controls'; |
import Controls from './controls'; |
||||||
|
import { BEHAVIOR } from './enums'; |
||||||
|
|
||||||
export default function(destroy$) { |
export default function(destroy$) { |
||||||
const id = '3a'; |
const id = '3a'; |
||||||
const config = { |
const config = { |
||||||
id, |
id, |
||||||
count: 5, |
maxCount: 10, |
||||||
maxCount: 1000, |
showVisionGridControl: true |
||||||
showAlignmentControl: true, |
|
||||||
showCohesionControl: true, |
|
||||||
showSeparationControl: true, |
|
||||||
// showVisionGridControl: true
|
|
||||||
}; |
}; |
||||||
|
|
||||||
const observables = Controls(destroy$, config); |
const observables = Controls(destroy$, config); |
||||||
new Animation(observables, id); |
new Animation(observables, id, BEHAVIOR.COHESION); |
||||||
} |
} |
||||||
|
@ -1,16 +1,15 @@ |
|||||||
import Animation from './animation'; |
import Animation from './animation'; |
||||||
import Controls from './controls'; |
import Controls from './controls'; |
||||||
|
import { BEHAVIOR } from './enums'; |
||||||
|
|
||||||
export default function(destroy$) { |
export default function(destroy$) { |
||||||
const id = '3b'; |
const id = '3b'; |
||||||
const config = { |
const config = { |
||||||
id, |
id, |
||||||
maxCount: 10, |
count: 200, |
||||||
showAlignmentControl: true, |
maxCount: 1000 |
||||||
showCohesionControl: true, |
|
||||||
showSeparationControl: true |
|
||||||
}; |
}; |
||||||
|
|
||||||
const observables = Controls(destroy$, config); |
const observables = Controls(destroy$, config); |
||||||
new Animation(observables, id).addHazards(); |
new Animation(observables, id, BEHAVIOR.COHESION); |
||||||
} |
} |
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue