@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
23 lines (19 loc) • 410 B
JavaScript
import { BoundValueWriter } from "./BoundValueWriter.js";
export class BoundVector3Writer extends BoundValueWriter {
/**
*
* @type {Vector3|null}
*/
#vector = null
/**
*
* @param {Vector3} vector
*/
constructor(vector) {
super();
this.#vector = vector;
}
write(data) {
this.#vector.fromArray(data);
}
}