@quake2ts/engine 0.0.794 → 0.0.796

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6289,6 +6289,20 @@ var Camera = class {
6289
6289
  this._aspect = value;
6290
6290
  this._dirty = true;
6291
6291
  }
6292
+ /**
6293
+ * Export camera state in Quake-space coordinates.
6294
+ * For use with new renderer architecture.
6295
+ */
6296
+ toState() {
6297
+ return {
6298
+ position: glMatrix.vec3.clone(this._position),
6299
+ angles: glMatrix.vec3.clone(this._angles),
6300
+ fov: this._fov,
6301
+ aspect: this._aspect,
6302
+ near: this._near,
6303
+ far: this._far
6304
+ };
6305
+ }
6292
6306
  // API Methods
6293
6307
  setPosition(x, y, z) {
6294
6308
  const newPos = glMatrix.vec3.fromValues(x, y, z);