15 lines
396 B
JavaScript
15 lines
396 B
JavaScript
import { ParticlesBounceFactor } from "./ParticlesBounceFactor";
|
|
export class ParticlesBounce {
|
|
constructor() {
|
|
this.horizontal = new ParticlesBounceFactor();
|
|
this.vertical = new ParticlesBounceFactor();
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
this.horizontal.load(data.horizontal);
|
|
this.vertical.load(data.vertical);
|
|
}
|
|
}
|