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 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).addHazards(); |
||||||
} |
} |
||||||
|
@ -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); |
||||||
} |
} |
||||||
|
@ -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