UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

35 lines (30 loc) 743 B
import { vec3 } from "gl-matrix"; import { v3_allocate } from "../../../../core/geom/vec3/v3_allocate.js"; export class STSpace { /** * * @type {vec3|Float32Array} */ vOs = v3_allocate(); /** * * @type {vec3|Float32Array} */ vOt = v3_allocate(); fMagS = 0; fMagT = 0; iCounter = 0; // this is to average back into quads. bOrient = false; /** * * @param {STSpace} other */ copy(other) { vec3.copy(this.vOs, other.vOs); this.fMagS = other.fMagS; vec3.copy(this.vOt, other.vOt); this.fMagT = other.fMagT; this.iCounter = other.iCounter; this.bOrient = other.bOrient; } }