Needle Engine

Changes between version 3.45.1-beta.4 and 3.45.1-beta.5
Files changed (1) hide show
  1. src/engine-components/GroundProjection.ts +2 -2
src/engine-components/GroundProjection.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  import { GroundedSkybox as GroundProjection } from 'three/examples/jsm/objects/GroundedSkybox.js';
3
3
 
4
4
  import { serializable } from "../engine/engine_serialization_decorator.js";
5
+ import { getBoundingBox, getWorldPosition, Graphics, setWorldPosition } from "../engine/engine_three_utils.js";
5
6
  import { getParam, Watch as Watch } from "../engine/engine_utils.js";
6
7
  import { Behaviour } from "./Component.js";
7
- import { getBoundingBox, getWorldPosition, Graphics, setWorldPosition } from "../engine/engine_three_utils.js";
8
8
 
9
9
  const debug = getParam("debuggroundprojection");
10
10
 
@@ -129,7 +129,7 @@
129
129
  // TODO: should also update the radius (?)
130
130
  this._projection.updateWorldMatrix(true, true);
131
131
  const scenebounds = getBoundingBox(this.context.scene.children, [this._projection]);
132
- let floor_y = scenebounds.min.y;
132
+ const floor_y = scenebounds.min.y;
133
133
  if (floor_y < Infinity) {
134
134
  const wp = getWorldPosition(this._projection);
135
135
  wp.x = scenebounds.min.x + (scenebounds.max.x - scenebounds.min.x) * .5;