@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.
package/dist/esm/index.js CHANGED
@@ -6288,6 +6288,20 @@ var Camera = class {
6288
6288
  this._aspect = value;
6289
6289
  this._dirty = true;
6290
6290
  }
6291
+ /**
6292
+ * Export camera state in Quake-space coordinates.
6293
+ * For use with new renderer architecture.
6294
+ */
6295
+ toState() {
6296
+ return {
6297
+ position: vec3.clone(this._position),
6298
+ angles: vec3.clone(this._angles),
6299
+ fov: this._fov,
6300
+ aspect: this._aspect,
6301
+ near: this._near,
6302
+ far: this._far
6303
+ };
6304
+ }
6291
6305
  // API Methods
6292
6306
  setPosition(x, y, z) {
6293
6307
  const newPos = vec3.fromValues(x, y, z);