@luminocity/lemonate-engine 26.3.5 → 26.3.7

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.
@@ -41307,7 +41307,7 @@
41307
41307
  }
41308
41308
  }
41309
41309
 
41310
- var engine$1 = "26.3.5";
41310
+ var engine$1 = "26.3.7";
41311
41311
  var bullet = "3.26";
41312
41312
  var lua = "5.4.3";
41313
41313
  var packageVersionInfo = {
@@ -103173,11 +103173,14 @@
103173
103173
  this.engine.eventBus.$emit('renderer:outputOptionChanged', this.editorOutputOption.id);
103174
103174
  return this.activeCamera;
103175
103175
  }
103176
+ getControlsMode() {
103177
+ return this.getEditorScene().getControlsMode();
103178
+ }
103176
103179
  setOrbitControls() {
103177
103180
  this.getEditorScene().setOrbitControls(this.activeCamera);
103178
103181
  }
103179
103182
  setFpsControls() {
103180
- this.getEditorScene().setFpsControls();
103183
+ this.getEditorScene().setFpsControls(this.activeCamera);
103181
103184
  }
103182
103185
  setTransformControlItems(items) {
103183
103186
  this.getEditorScene().setTransformControlItems(items);
@@ -123932,8 +123935,9 @@
123932
123935
  if (!this.webGlRenderer) {
123933
123936
  return;
123934
123937
  }
123935
- const target = this.estimateOrbitControlsTarget(camera);
123936
- this.createOrbitControls(this.renderer.activeCamera, target);
123938
+ const controlsCamera = camera || this.renderer.activeCamera;
123939
+ const target = this.estimateOrbitControlsTarget(controlsCamera);
123940
+ this.createOrbitControls(controlsCamera, target);
123937
123941
  }
123938
123942
  createOrbitControls(camera, target) {
123939
123943
  if (!this.webGlRenderer) {
@@ -123948,7 +123952,7 @@
123948
123952
  return;
123949
123953
  }
123950
123954
  this.disposeControls();
123951
- const controlsCamera = camera || this.activeCamera;
123955
+ const controlsCamera = camera || this.renderer.activeCamera;
123952
123956
  this.controls = new FpsControls(controlsCamera, this.engine);
123953
123957
  }
123954
123958
  recreateControls(isOrthographic, camera) {
@@ -123966,14 +123970,19 @@
123966
123970
  this.setCameraTarget(target);
123967
123971
  }
123968
123972
  }
123973
+ getControlsMode() {
123974
+ if (!this.controls)
123975
+ return null;
123976
+ return this.controls.type;
123977
+ }
123969
123978
  setOrbitControls(camera) {
123970
123979
  if (this.controls && this.controls.type !== "OrbitControls") {
123971
123980
  this.switchToOrbitControls(camera);
123972
123981
  }
123973
123982
  }
123974
- setFpsControls() {
123983
+ setFpsControls(camera) {
123975
123984
  if (this.controls && this.controls.type !== "FpsControls") {
123976
- this.createFpsControls();
123985
+ this.createFpsControls(camera);
123977
123986
  }
123978
123987
  }
123979
123988
  updateControls(renderPassInfo) {
package/dist/player.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminocity/lemonate-engine",
3
- "version": "26.3.5",
3
+ "version": "26.3.7",
4
4
  "repository": "https://codeberg.org/Luminocity/lemonate-engine",
5
5
  "homepage": "https://lemonate.io",
6
6
  "description": "The Lemonate Engine is the game engine that powers lemonate.io",
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@gltf-transform/core": "^4.0.1",
44
44
  "@gltf-transform/extensions": "^4.0.1",
45
- "@luminocity/lemonate-gateway": "8.2.17",
45
+ "@luminocity/lemonate-gateway": "8.2.18",
46
46
  "@msgpack/msgpack": "3.1.1",
47
47
  "@recast-navigation/three": "^0.42.0",
48
48
  "@sparkjsdev/spark": "^0.1.10",