2023-02-17 11:06:01 +01:00

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);
}
}