@needle-tools/engine 3.44.2 → 3.44.3

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.
@@ -29624,13 +29624,13 @@ function bte() {
29624
29624
  return s || null;
29625
29625
  }
29626
29626
  const mV = ie("debugdefines");
29627
- Kg('if(!globalThis[""3.44.2""]) globalThis[""3.44.2""] = "0.0.0";');
29627
+ Kg('if(!globalThis[""3.44.3""]) globalThis[""3.44.3""] = "0.0.0";');
29628
29628
  Kg('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
29629
- Kg('if(!globalThis[""Fri Jul 05 2024 15:23:54 GMT+0200 (Central European Summer Time)""]) globalThis[""Fri Jul 05 2024 15:23:54 GMT+0200 (Central European Summer Time)""] = "unknown";');
29630
- Kg('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.44.2";');
29629
+ Kg('if(!globalThis[""Fri Jul 05 2024 19:08:58 GMT+0200 (Central European Summer Time)""]) globalThis[""Fri Jul 05 2024 19:08:58 GMT+0200 (Central European Summer Time)""] = "unknown";');
29630
+ Kg('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.44.3";');
29631
29631
  Kg('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
29632
- Kg('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Jul 05 2024 15:23:54 GMT+0200 (Central European Summer Time)";');
29633
- const tl = "3.44.2", FB = "undefined", gV = "Fri Jul 05 2024 15:23:54 GMT+0200 (Central European Summer Time)";
29632
+ Kg('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Jul 05 2024 19:08:58 GMT+0200 (Central European Summer Time)";');
29633
+ const tl = "3.44.3", FB = "undefined", gV = "Fri Jul 05 2024 19:08:58 GMT+0200 (Central European Summer Time)";
29634
29634
  mV && console.log(`Engine version: ${tl} (generator: ${FB})
29635
29635
  Project built at ${gV}`);
29636
29636
  const Uu = "needle_isActiveInHierarchy", Im = "builtin_components", pw = "needle_editor_guid";
@@ -74788,7 +74788,7 @@ class Ia {
74788
74788
  let h = o.exitTime;
74789
74789
  i.timeScale < 0 && (h = 1 - h);
74790
74790
  let u = !1;
74791
- if (o.hasExitTime ? u = c >= h : u = !0, u) {
74791
+ if (o.hasExitTime ? i.timeScale > 0 ? u = c >= o.exitTime : i.timeScale < 0 && (u = 1 - c >= o.exitTime) : u = !0, u) {
74792
74792
  for (const f of o.conditions) {
74793
74793
  const p = this.model.parameters.find((m) => m.name === f.parameter);
74794
74794
  (p == null ? void 0 : p.type) === MQ.Trigger && p.value && (p.value = !1);
@@ -87561,16 +87561,16 @@ class gge {
87561
87561
  if (A.length > 0) {
87562
87562
  const _ = A[0];
87563
87563
  if (this._draggedOverObject === _.object ? this._draggedOverObjectDuration += this.context.time.deltaTime : (this._draggedOverObject = _.object, this._draggedOverObjectDuration = 0), _.face) {
87564
- const b = this._draggedOverObjectDuration >= 0.15;
87565
- if (b && (this._draggedOverObjectLastSetUp !== this._draggedOverObject || this._draggedOverObjectLastNormal.dot(_.face.normal) < 0.999999 || this.context.time.frame % 60 === 0)) {
87564
+ const b = this._draggedOverObjectDuration >= 0.15, S = 1e-3, E = this._totalMovement.length() >= S;
87565
+ if ((b || E) && (this._draggedOverObjectLastSetUp !== this._draggedOverObject || this._draggedOverObjectLastNormal.dot(_.face.normal) < 0.999999 || this.context.time.frame % 60 === 0)) {
87566
87566
  this._draggedOverObjectLastSetUp = this._draggedOverObject, this._draggedOverObjectLastNormal.copy(_.face.normal);
87567
- const S = Gi(), E = Gi();
87568
- this._bounds.getCenter(S), this._bounds.getSize(E), S.sub(E.multiplyScalar(0.5).multiply(_.face.normal)), this._hitPointInLocalSpace.copy(S), this._hitNormalInLocalSpace.copy(_.face.normal), this._bounds.getCenter(S), this._bounds.getSize(E), S.add(E.multiplyScalar(0.5).multiply(_.face.normal));
87569
- const M = Gi(this._hitPointInLocalSpace).add(S);
87570
- this._followObject.localToWorld(M);
87571
- const T = _.point;
87572
- this._dragPlane.setFromNormalAndCoplanarPoint(_.face.normal, T);
87573
- } else if (!b)
87567
+ const M = Gi(), T = Gi();
87568
+ this._bounds.getCenter(M), this._bounds.getSize(T), M.sub(T.multiplyScalar(0.5).multiply(_.face.normal)), this._hitPointInLocalSpace.copy(M), this._hitNormalInLocalSpace.copy(_.face.normal), this._bounds.getCenter(M), this._bounds.getSize(T), M.add(T.multiplyScalar(0.5).multiply(_.face.normal));
87569
+ const P = Gi(this._hitPointInLocalSpace).add(M);
87570
+ this._followObject.localToWorld(P);
87571
+ const C = _.point;
87572
+ this._dragPlane.setFromNormalAndCoplanarPoint(_.face.normal, C);
87573
+ } else if (!(b || E))
87574
87574
  return;
87575
87575
  }
87576
87576
  }