@needle-tools/engine 4.13.1-beta → 4.13.1-next.9fc3e64
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/CHANGELOG.md +6 -0
- package/components.needle.json +1 -1
- package/dist/gltf-progressive-CaUGGjVL.umd.cjs +10 -0
- package/dist/gltf-progressive-Dbi_Tfhb.js +1528 -0
- package/dist/gltf-progressive-DuAR0MQR.min.js +10 -0
- package/dist/{needle-engine.bundle-CGtsEhyJ.js → needle-engine.bundle-BZRE5G6O.js} +335 -312
- package/dist/{needle-engine.bundle-fbFZTOKP.umd.cjs → needle-engine.bundle-Dqrh7aWw.umd.cjs} +29 -29
- package/dist/{needle-engine.bundle-6774fXoY.min.js → needle-engine.bundle-DwybonUg.min.js} +47 -47
- package/dist/needle-engine.d.ts +446 -39
- package/dist/needle-engine.js +3 -3
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine/engine_context.js +12 -2
- package/lib/engine/engine_context.js.map +1 -1
- package/lib/engine/engine_physics.d.ts +2 -0
- package/lib/engine/engine_physics.js +2 -0
- package/lib/engine/engine_physics.js.map +1 -1
- package/lib/engine/engine_physics_rapier.d.ts +2 -0
- package/lib/engine/engine_physics_rapier.js +2 -0
- package/lib/engine/engine_physics_rapier.js.map +1 -1
- package/lib/engine/engine_utils.d.ts +1 -0
- package/lib/engine/engine_utils.js +1 -0
- package/lib/engine/engine_utils.js.map +1 -1
- package/lib/engine/engine_utils_screenshot.d.ts +171 -14
- package/lib/engine/engine_utils_screenshot.js +65 -0
- package/lib/engine/engine_utils_screenshot.js.map +1 -1
- package/lib/engine/engine_utils_screenshot.xr.d.ts +1 -1
- package/lib/engine/engine_utils_screenshot.xr.js +1 -1
- package/lib/engine/extensions/NEEDLE_techniques_webgl.js +3 -0
- package/lib/engine/extensions/NEEDLE_techniques_webgl.js.map +1 -1
- package/lib/engine/xr/NeedleXRSession.d.ts +5 -0
- package/lib/engine/xr/NeedleXRSession.js +5 -0
- package/lib/engine/xr/NeedleXRSession.js.map +1 -1
- package/lib/engine-components/ContactShadows.d.ts +2 -0
- package/lib/engine-components/ContactShadows.js +2 -0
- package/lib/engine-components/ContactShadows.js.map +1 -1
- package/lib/engine-components/EventList.js +2 -2
- package/lib/engine-components/EventList.js.map +1 -1
- package/lib/engine-components/Renderer.d.ts +4 -3
- package/lib/engine-components/Renderer.js +4 -3
- package/lib/engine-components/Renderer.js.map +1 -1
- package/lib/engine-components/RigidBody.d.ts +57 -5
- package/lib/engine-components/RigidBody.js +57 -5
- package/lib/engine-components/RigidBody.js.map +1 -1
- package/lib/engine-components/ScreenCapture.d.ts +1 -0
- package/lib/engine-components/ScreenCapture.js +1 -0
- package/lib/engine-components/ScreenCapture.js.map +1 -1
- package/lib/engine-components/SeeThrough.d.ts +70 -5
- package/lib/engine-components/SeeThrough.js +70 -5
- package/lib/engine-components/SeeThrough.js.map +1 -1
- package/lib/engine-components/ShadowCatcher.d.ts +56 -4
- package/lib/engine-components/ShadowCatcher.js +56 -4
- package/lib/engine-components/ShadowCatcher.js.map +1 -1
- package/lib/engine-components/Skybox.d.ts +43 -7
- package/lib/engine-components/Skybox.js +43 -7
- package/lib/engine-components/Skybox.js.map +1 -1
- package/lib/engine-components/VideoPlayer.d.ts +1 -1
- package/lib/engine-components/VideoPlayer.js +7 -1
- package/lib/engine-components/VideoPlayer.js.map +1 -1
- package/lib/engine-components/timeline/PlayableDirector.d.ts +4 -0
- package/lib/engine-components/timeline/PlayableDirector.js +4 -0
- package/lib/engine-components/timeline/PlayableDirector.js.map +1 -1
- package/lib/engine-components/timeline/TimelineModels.d.ts +14 -0
- package/lib/engine-components/timeline/TimelineModels.js +4 -0
- package/lib/engine-components/timeline/TimelineModels.js.map +1 -1
- package/lib/engine-components/utils/OpenURL.d.ts +1 -0
- package/lib/engine-components/utils/OpenURL.js +1 -0
- package/lib/engine-components/utils/OpenURL.js.map +1 -1
- package/lib/engine-components/web/CursorFollow.d.ts +1 -0
- package/lib/engine-components/web/CursorFollow.js +1 -0
- package/lib/engine-components/web/CursorFollow.js.map +1 -1
- package/lib/engine-components/web/ScrollFollow.d.ts +1 -0
- package/lib/engine-components/web/ScrollFollow.js +1 -0
- package/lib/engine-components/web/ScrollFollow.js.map +1 -1
- package/lib/engine-components/webxr/WebARCameraBackground.d.ts +9 -0
- package/lib/engine-components/webxr/WebARCameraBackground.js +9 -0
- package/lib/engine-components/webxr/WebARCameraBackground.js.map +1 -1
- package/lib/engine-components/webxr/WebXR.d.ts +1 -0
- package/lib/engine-components/webxr/WebXR.js +1 -0
- package/lib/engine-components/webxr/WebXR.js.map +1 -1
- package/package.json +3 -3
- package/plugins/vite/build-pipeline.js +16 -2
- package/src/engine/engine_context.ts +17 -3
- package/src/engine/engine_physics.ts +4 -0
- package/src/engine/engine_physics_rapier.ts +8 -4
- package/src/engine/engine_utils.ts +1 -0
- package/src/engine/engine_utils_screenshot.ts +241 -17
- package/src/engine/engine_utils_screenshot.xr.ts +1 -1
- package/src/engine/extensions/NEEDLE_techniques_webgl.ts +3 -0
- package/src/engine/xr/NeedleXRSession.ts +5 -0
- package/src/engine-components/ContactShadows.ts +6 -1
- package/src/engine-components/EventList.ts +2 -2
- package/src/engine-components/Renderer.ts +14 -13
- package/src/engine-components/RigidBody.ts +64 -8
- package/src/engine-components/ScreenCapture.ts +1 -0
- package/src/engine-components/SeeThrough.ts +76 -9
- package/src/engine-components/ShadowCatcher.ts +61 -6
- package/src/engine-components/Skybox.ts +48 -12
- package/src/engine-components/VideoPlayer.ts +7 -1
- package/src/engine-components/timeline/PlayableDirector.ts +5 -1
- package/src/engine-components/timeline/SignalAsset.ts +1 -1
- package/src/engine-components/timeline/TimelineModels.ts +18 -2
- package/src/engine-components/utils/OpenURL.ts +1 -0
- package/src/engine-components/web/CursorFollow.ts +1 -0
- package/src/engine-components/web/ScrollFollow.ts +1 -0
- package/src/engine-components/webxr/WebARCameraBackground.ts +12 -3
- package/src/engine-components/webxr/WebXR.ts +1 -0
- package/dist/gltf-progressive-BURrJW0U.umd.cjs +0 -8
- package/dist/gltf-progressive-DHLDFNvQ.min.js +0 -8
- package/dist/gltf-progressive-eiJCrjLb.js +0 -1400
- package/src/include/three/DragControls.js +0 -232
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vector2 as ee, Vector3 as y, Vector4 as me, Quaternion as V, PlaneGeometry as Sn, WebGLRenderer as Lr, PerspectiveCamera as ce, OrthographicCamera as au, Scene as Mi, Mesh as H, Texture as Fe, Uniform$1 as Gi, Color as re, ShaderMaterial as Xn, Box3 as Pi, ShadowMaterial as i0, Euler as
|
|
2
|
-
import { createLoaders as Zm, getRaycastMesh as m0, LODsManager as Xo, NEEDLE_progressive as We, addDracoAndKTX2Loaders as hC, configureLoader as dC, setKTX2TranscoderLocation as uC, setDracoDecoderLocation as fC } from "./gltf-progressive-
|
|
1
|
+
import { Vector2 as ee, Vector3 as y, Vector4 as me, Quaternion as V, PlaneGeometry as Sn, WebGLRenderer as Lr, PerspectiveCamera as ce, OrthographicCamera as au, Scene as Mi, Mesh as H, Texture as Fe, Uniform$1 as Gi, Color as re, ShaderMaterial as Xn, Box3 as Pi, ShadowMaterial as i0, Euler as ct, MeshStandardMaterial as pt, Box3Helper as Xx, GridHelper as n0, Object3D as M, Material as be, Matrix3 as s0, Matrix4 as J, Layers as wo, Ray as Es, MathUtils as Ps, AxesHelper as Oi, MeshBasicMaterial as we, DoubleSide as Ri, BufferGeometry as _n, Group as Os, CylinderGeometry as o0, SphereGeometry as lu, BoxGeometry as La, SpriteMaterial as Qx, Sprite as Yx, Shape as Kx, ExtrudeGeometry as Zx, Fog as r0, DirectionalLight as Bp, PointLight as Vm, TextureLoader as Sr, EdgesGeometry as Jx, LineSegments as a0, LineBasicMaterial as Hm, Line as Da, BufferAttribute as mt, Raycaster as cu, Sphere as hu, ArrayCamera as eS, Plane as Cr, SkinnedMesh as mo, InterleavedBufferAttribute as l0, Skeleton as tS, Bone as iS, WebGLCubeRenderTarget as nS, CubeCamera as sS, AnimationClip as ki, FileLoader as Gm, PropertyBinding as ja, KeyframeTrack as oS, LinearSRGBColorSpace as Ts, ShaderChunk as Zt, UniformsLib as rS, DataTexture as qm, RGBAFormat as du, EquirectangularReflectionMapping as Hn, SRGBColorSpace as As, Clock as aS, NeutralToneMapping as Ba, AgXToneMapping as uu, ACESFilmicToneMapping as fu, NoToneMapping as Cd, PCFSoftShadowMap$1 as lS, BasicNodeLibrary as cS, WebGLRenderTarget as Qn, DepthTexture as c0, NearestFilter as Pd, LoopRepeat as hS, LoopOnce as Fp, AnimationMixer as Xm, CompressedTexture as dS, FrontSide as xo, Camera as uS, Frustum as Ly, AudioListener as fS, PositionalAudio as pS, AudioLoader as Up, EventDispatcher as Qm, BackSide as pu, MeshDepthMaterial as mS, CustomBlending as gS, MaxEquation as yS, AlwaysStencilFunc as _S, GreaterEqualStencilFunc as bS, NotEqualStencilFunc as vS, GreaterStencilFunc as wS, LessEqualStencilFunc as xS, EqualStencilFunc as SS, LessStencilFunc as CS, NeverStencilFunc as Dy, InvertStencilOp as PS, DecrementWrapStencilOp as OS, IncrementWrapStencilOp as kS, DecrementStencilOp as MS, IncrementStencilOp as RS, ReplaceStencilOp as ES, ZeroStencilOp as TS, KeepStencilOp as AS, CubeTexture as h0, AmbientLight as IS, HemisphereLight as LS, Loader as DS, RawShaderMaterial as d0, GLSL3 as jS, AlwaysDepth as BS, GreaterEqualDepth as FS, GreaterDepth as US, LessEqualDepth as zS, LessDepth as NS, NotEqualDepth as $S, EqualDepth as WS, BatchedMesh as jy, MeshPhysicalMaterial as zp, LinearFilter as Od, UnsignedByteType as VS, RingGeometry as HS, Line3 as GS, AdditiveBlending as u0, BoxHelper as qS, SpotLight as XS, DirectionalLightHelper as QS, CameraHelper as YS, LOD as KS, Triangle as ZS, NormalBlending as JS, ReinhardToneMapping as Ym, LinearToneMapping as Km, HalfFloatType as xf, VideoTexture as eC, CubeUVReflectionMapping as f0, CompressedCubeTexture as tC, EquirectangularRefractionMapping as iC, CatmullRomCurve3 as nC, VectorKeyframeTrack as sC, QuaternionKeyframeTrack as oC, Audio as rC, ShaderLib as kd, UniformsUtils as p0, MirroredRepeatWrapping as By, MeshNormalMaterial as aC, AudioContext as lC, PMREMGenerator$1 as cC } from "./three-VvRoMeIN.js";
|
|
2
|
+
import { createLoaders as Zm, getRaycastMesh as m0, LODsManager as Xo, NEEDLE_progressive as We, addDracoAndKTX2Loaders as hC, configureLoader as dC, setKTX2TranscoderLocation as uC, setDracoDecoderLocation as fC } from "./gltf-progressive-Dbi_Tfhb.js";
|
|
3
3
|
import { GroundedSkybox as Fa, Font as pC, TextGeometry as mC, FontLoader as gC, GLTFLoader as Is, TransformControlsGizmo as g0, EXRLoader as Jm, RGBELoader as y0, Stats as yC, nodeFrame as Fy, OrbitControls as _0, PositionalAudioHelper as _C, HorizontalBlurShader as bC, VerticalBlurShader as vC, GLTFExporter as b0, strToU8 as v0, zipSync as wC, XRControllerModelFactory as xC, XRHandMeshModel as SC, Line2 as CC, LineGeometry as PC, LineMaterial as OC, TransformControls as kC, InteractiveGroup as MC, HTMLMesh as RC, VertexNormalsHelper as EC, OBJLoader as eg, FBXLoader as w0, mergeVertices as TC } from "./three-examples-BhfOE7NG.js";
|
|
4
4
|
import { fetchProfile as AC, MotionController as IC, $70d766613f57b014$export$2e2bcd8739ae039 as Uy, ByteBuffer as LC, v5 as zy, md5 as Ny, SIZE_PREFIX_LENGTH as x0, Builder as tg, createNoise4D as DC, Matrix4 as Sf, BatchedParticleRenderer as jC, ParticleSystem as BC, RenderMode as gs, ConstantColor as FC, Vector4 as UC, ConstantValue as zC, TrailParticle as $y, WorkerBase as NC, MeshBVH as $C } from "./vendor-BiyIZ61v.js";
|
|
5
5
|
import { __webpack_exports__default as Ce, __webpack_exports__Text as S0, __webpack_exports__Block as C0, __webpack_exports__update as WC, SimpleStateBehavior as VC, __webpack_exports__Inline as Cf, __webpack_exports__FontLibrary as Wy, ThreeMeshUI as Vy } from "./three-mesh-ui-CcMp-FQm.js";
|
|
@@ -1070,7 +1070,7 @@ const O1 = new Yi(() => new y(), 100), t_ = new V();
|
|
|
1070
1070
|
function k1(s, e) {
|
|
1071
1071
|
return e || (e = O1.get().set(0, 0, 1)), ve(s, t_), e.applyQuaternion(t_);
|
|
1072
1072
|
}
|
|
1073
|
-
const i_ = new
|
|
1073
|
+
const i_ = new ct(), n_ = new ct(), M1 = new y();
|
|
1074
1074
|
function B0(s) {
|
|
1075
1075
|
const e = Ed.get();
|
|
1076
1076
|
return s.getWorldQuaternion(e), n_.setFromQuaternion(e), n_;
|
|
@@ -1963,11 +1963,11 @@ Oo('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
|
|
|
1963
1963
|
Oo('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
|
|
1964
1964
|
Oo('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
|
|
1965
1965
|
Oo('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1966
|
-
Oo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.13.1
|
|
1966
|
+
Oo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.13.1";');
|
|
1967
1967
|
Oo('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1968
|
-
Oo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
1968
|
+
Oo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Mon Feb 16 2026 14:46:26 GMT+0000 (Coordinated Universal Time)";');
|
|
1969
1969
|
Oo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
|
|
1970
|
-
const Xi = "4.13.1
|
|
1970
|
+
const Xi = "4.13.1", Rc = "undefined", Ad = "Mon Feb 16 2026 14:46:26 GMT+0000 (Coordinated Universal Time)";
|
|
1971
1971
|
q0 && console.log(`Engine version: ${Xi} (generator: ${Rc})
|
|
1972
1972
|
Project built at ${Ad}`);
|
|
1973
1973
|
const ur = NEEDLE_PUBLIC_KEY, yo = "needle_isActiveInHierarchy", ca = "builtin_components", rd = "needle_editor_guid";
|
|
@@ -2895,7 +2895,7 @@ class bP {
|
|
|
2895
2895
|
}
|
|
2896
2896
|
}
|
|
2897
2897
|
}
|
|
2898
|
-
const ls = x("debugwebxr"), Oh = x("debugcustomgesture"), vP = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", wP = "generic-trigger", xP = new V().setFromEuler(new
|
|
2898
|
+
const ls = x("debugwebxr"), Oh = x("debugcustomgesture"), vP = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", wP = "generic-trigger", xP = new V().setFromEuler(new ct(Ps.degToRad(0), Ps.degToRad(-90), Ps.degToRad(-90))), SP = new y(0.04, -0.04, 0);
|
|
2899
2899
|
class J0 {
|
|
2900
2900
|
/** the Needle XR Session */
|
|
2901
2901
|
xr;
|
|
@@ -7076,7 +7076,7 @@ function gv(s, e, t, i) {
|
|
|
7076
7076
|
if (l.guid) {
|
|
7077
7077
|
Bd && console.log("[Local] new instance", "gameobject:", r?.guid);
|
|
7078
7078
|
const c = new yO(n.guid, l.guid);
|
|
7079
|
-
c.seed = a, e.deleteOnDisconnect === !0 && (c.deleteStateOnDisconnect = !0), o && (o.position && (Array.isArray(o.position) ? c.position = { x: o.position[0], y: o.position[1], z: o.position[2] } : c.position = { x: o.position.x, y: o.position.y, z: o.position.z }), o.rotation && (o.rotation instanceof
|
|
7079
|
+
c.seed = a, e.deleteOnDisconnect === !0 && (c.deleteStateOnDisconnect = !0), o && (o.position && (Array.isArray(o.position) ? c.position = { x: o.position[0], y: o.position[1], z: o.position[2] } : c.position = { x: o.position.x, y: o.position.y, z: o.position.z }), o.rotation && (o.rotation instanceof ct ? o.rotation = new V().setFromEuler(o.rotation) : o.rotation instanceof Array && (o.rotation = new V().fromArray(o.rotation)), c.rotation = { x: o.rotation.x, y: o.rotation.y, z: o.rotation.z, w: o.rotation.w }), o.scale && (Array.isArray(o.scale) ? c.scale = { x: o.scale[0], y: o.scale[1], z: o.scale[2] } : c.scale = { x: o.scale.x, y: o.scale.y, z: o.scale.z })), c.position || (c.position = { x: l.position.x, y: l.position.y, z: l.position.z }), c.rotation || (c.rotation = { x: l.quaternion.x, y: l.quaternion.y, z: l.quaternion.z, w: l.quaternion.w }), c.scale || (c.scale = { x: l.scale.x, y: l.scale.y, z: l.scale.z }), c.visible = n.visible, o?.parent && (typeof o.parent == "string" ? c.parent = o.parent : c.parent = o.parent.guid), c.hostData = t, i === !1 && (c.dontSave = !0), !e?.context?.connection && L() && console.debug("Object will be instantiated but it will not be synced: not connected", n.guid), e.context.connection.isInRoom && ha.push(new WeakRef(l)), e?.context?.connection.send("new-instance-created", c);
|
|
7080
7080
|
} else console.warn("Missing guid, can not send new instance event", l);
|
|
7081
7081
|
}
|
|
7082
7082
|
return r;
|
|
@@ -8159,10 +8159,10 @@ function Tv(s, e, t, i, n, o) {
|
|
|
8159
8159
|
if (t?.rotation) {
|
|
8160
8160
|
if (t.rotation instanceof V)
|
|
8161
8161
|
l.worldQuaternion = t.rotation;
|
|
8162
|
-
else if (t.rotation instanceof
|
|
8162
|
+
else if (t.rotation instanceof ct)
|
|
8163
8163
|
l.worldQuaternion = bi().setFromEuler(t.rotation);
|
|
8164
8164
|
else if (Array.isArray(t.rotation)) {
|
|
8165
|
-
const h = new
|
|
8165
|
+
const h = new ct();
|
|
8166
8166
|
h.fromArray(t.rotation), l.worldQuaternion = bi().setFromEuler(h);
|
|
8167
8167
|
}
|
|
8168
8168
|
} else l.quaternion.copy(e.quaternion);
|
|
@@ -11222,7 +11222,7 @@ class Ou extends HTMLElement {
|
|
|
11222
11222
|
}
|
|
11223
11223
|
}
|
|
11224
11224
|
customElements.get(ar) || customElements.define(ar, Ou);
|
|
11225
|
-
const
|
|
11225
|
+
const Ze = x("debugcontext"), Ik = x("stats"), Lk = x("debugactive"), Dk = x("debugframerate"), jk = x("debugcoroutine"), AD = {};
|
|
11226
11226
|
class ID {
|
|
11227
11227
|
name;
|
|
11228
11228
|
/** for debugging only */
|
|
@@ -11244,12 +11244,12 @@ var Se = /* @__PURE__ */ ((s) => (s[s.Start = -1] = "Start", s[s.EarlyUpdate = 0
|
|
|
11244
11244
|
function Sg(s, e) {
|
|
11245
11245
|
if (!s) return;
|
|
11246
11246
|
if (!s.isComponent) {
|
|
11247
|
-
(L() ||
|
|
11247
|
+
(L() || Ze) && console.error(`Registered script is not a Needle Engine component.
|
|
11248
11248
|
The script will be ignored. Please make sure your component extends "Behaviour" imported from "@needle-tools/engine"
|
|
11249
11249
|
`, s);
|
|
11250
11250
|
return;
|
|
11251
11251
|
}
|
|
11252
|
-
e || (e = N.Current,
|
|
11252
|
+
e || (e = N.Current, Ze && console.warn("> Registering component without context"));
|
|
11253
11253
|
const t = e?.new_scripts;
|
|
11254
11254
|
t.includes(s) || t.push(s);
|
|
11255
11255
|
}
|
|
@@ -11613,9 +11613,9 @@ class N {
|
|
|
11613
11613
|
createNewRenderer(e) {
|
|
11614
11614
|
if (this.renderer?.dispose(), e = { ...N.DefaultWebGLRendererParameters, ...e }, !e.canvas) {
|
|
11615
11615
|
const t = this.domElement?.shadowRoot?.querySelector("canvas");
|
|
11616
|
-
t && (e.canvas = t,
|
|
11616
|
+
t && (e.canvas = t, Ze && console.log("Using canvas from shadow root", t));
|
|
11617
11617
|
}
|
|
11618
|
-
return
|
|
11618
|
+
return Ze && console.log("Using Renderer Parameters:", e, this.domElement), this.renderer = new Lr(e), this.renderer.debug.checkShaderErrors = L() || x("checkshadererrors") === !0, this.renderer.toneMappingExposure = 1, this.renderer.toneMapping = Cd, this.renderer.setClearColor(new re("lightgrey"), 0), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = lS, this.renderer.setSize(this.domWidth, this.domHeight), this.renderer.outputColorSpace = As, this.renderer.nodes = {
|
|
11619
11619
|
library: new cS(),
|
|
11620
11620
|
modelViewMatrix: null,
|
|
11621
11621
|
modelNormalViewMatrix: null
|
|
@@ -11723,7 +11723,7 @@ class N {
|
|
|
11723
11723
|
this.internalOnDestroy();
|
|
11724
11724
|
}
|
|
11725
11725
|
internalOnDestroy() {
|
|
11726
|
-
N.Current = this, pe.dispatchCallback(ue.ContextDestroying, this), En(this, ue.ContextDestroying), this.clear(), this.renderer?.setAnimationLoop(null), this.renderer && (this.renderer.setClearAlpha(0), this.renderer.clear(), this.isManagedExternally || (
|
|
11726
|
+
N.Current = this, pe.dispatchCallback(ue.ContextDestroying, this), En(this, ue.ContextDestroying), this.clear(), this.renderer?.setAnimationLoop(null), this.renderer && (this.renderer.setClearAlpha(0), this.renderer.clear(), this.isManagedExternally || (Ze && console.log("Disposing renderer"), this.renderer.dispose())), this.scene = null, this.renderer = null, this.input.dispose(), this.menu.onDestroy(), this.animations.onDestroy();
|
|
11727
11727
|
for (const e of this._disposeCallbacks)
|
|
11728
11728
|
try {
|
|
11729
11729
|
e();
|
|
@@ -11862,10 +11862,10 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
11862
11862
|
// #region internal create
|
|
11863
11863
|
async internalOnCreate(e) {
|
|
11864
11864
|
const t = ++this._createId;
|
|
11865
|
-
|
|
11865
|
+
Ze && console.log("Creating context", this.name, e);
|
|
11866
11866
|
const i = globalThis["needle:dependencies:ready"];
|
|
11867
|
-
i instanceof Promise && (
|
|
11868
|
-
if (
|
|
11867
|
+
i instanceof Promise && (Ze && console.log("Waiting for dependencies to be ready"), await i.catch((h) => {
|
|
11868
|
+
if (Ze || L()) {
|
|
11869
11869
|
if (vu("Needle Engine dependencies failed to load. Please check the console for more details"), h instanceof ReferenceError) {
|
|
11870
11870
|
let d = "YourComponentName";
|
|
11871
11871
|
const f = h.message.indexOf("'");
|
|
@@ -11890,7 +11890,7 @@ Possible solutions:
|
|
|
11890
11890
|
console.error("Needle Engine dependencies failed to load", h);
|
|
11891
11891
|
}
|
|
11892
11892
|
}).then(() => {
|
|
11893
|
-
|
|
11893
|
+
Ze && console.log("Needle Engine dependencies are ready");
|
|
11894
11894
|
})), this.clear();
|
|
11895
11895
|
const n = this.renderer, o = !n || n.isDisposed === !0;
|
|
11896
11896
|
this.isManagedExternally === !1 && o ? this.createNewRenderer() : this.lodsManager.setRenderer(this.renderer), this.renderer?.setAnimationLoop(null), N.Current = this, await pe.dispatchCallback(ue.ContextCreationStart, this);
|
|
@@ -11905,7 +11905,7 @@ Possible solutions:
|
|
|
11905
11905
|
if (t !== this._createId || e?.abortSignal?.aborted)
|
|
11906
11906
|
return !1;
|
|
11907
11907
|
if (this.internalOnUpdateVisible(), !this.renderer)
|
|
11908
|
-
return
|
|
11908
|
+
return Ze && console.warn("Context has no renderer (perhaps it was disconnected?", this.domElement.isConnected), !1;
|
|
11909
11909
|
!this.isManagedExternally && !this.domElement.shadowRoot && this.domElement.prepend(this.renderer.domElement), N.Current = this, N.Current = this;
|
|
11910
11910
|
for (let h = 0; h < this.new_scripts.length; h++) {
|
|
11911
11911
|
const d = this.new_scripts[h];
|
|
@@ -11931,7 +11931,7 @@ Possible solutions:
|
|
|
11931
11931
|
}
|
|
11932
11932
|
}), h ? this.setCurrentCamera(h) : !pe.dispatchCallback(ue.MissingCamera, this, { files: a }) && !this.mainCamera && !this.isManagedExternally && console.warn("Missing camera in main scene", this);
|
|
11933
11933
|
}
|
|
11934
|
-
this.input.bindEvents(), N.Current = this, jd(this), this.physics.engine && (this.physics.engine?.step(0), this.physics.engine?.postStep()), !this.isManagedExternally && this.composer && this.mainCamera, this._needsUpdateSize = !0, this._stats && (this._stats.showPanel(0), this._stats.dom.style.position = "absolute", this.domElement.shadowRoot?.appendChild(this._stats.dom)),
|
|
11934
|
+
this.input.bindEvents(), N.Current = this, jd(this), this.physics.engine && (this.physics.engine?.step(0), this.physics.engine?.postStep()), !this.isManagedExternally && this.composer && this.mainCamera, this._needsUpdateSize = !0, this._stats && (this._stats.showPanel(0), this._stats.dom.style.position = "absolute", this.domElement.shadowRoot?.appendChild(this._stats.dom)), Ze && Hp(this.scene, !0), this.targetFrameRate === void 0 ? (Ze && console.warn("No target framerate set, using default", N.DefaultTargetFrameRate), this.targetFrameRate = N._defaultTargetFramerate) : Ze && console.log("Target framerate set to", this.targetFrameRate), this._dispatchReadyAfterFrame = !0;
|
|
11935
11935
|
const l = pe.dispatchCallback(ue.ContextCreated, this, { files: a });
|
|
11936
11936
|
if (l) {
|
|
11937
11937
|
const h = this.domElement;
|
|
@@ -11940,7 +11940,7 @@ Possible solutions:
|
|
|
11940
11940
|
if (e?.abortSignal?.aborted)
|
|
11941
11941
|
return !1;
|
|
11942
11942
|
const c = this.rootSourceId;
|
|
11943
|
-
return c && this.sceneLighting.enable(c), En(this, ue.ContextCreated),
|
|
11943
|
+
return c && this.sceneLighting.enable(c), En(this, ue.ContextCreated), Ze && console.log("Context Created...", this.renderer, this.renderer.domElement), this._isCreating = !1, !this.isManagedExternally && !e?.abortSignal?.aborted && this.restartRenderLoop(), !0;
|
|
11944
11944
|
}
|
|
11945
11945
|
rootSceneSourceIdentifiers = [];
|
|
11946
11946
|
async internalLoadInitialContent(e, t) {
|
|
@@ -11957,15 +11957,15 @@ Possible solutions:
|
|
|
11957
11957
|
}, r = Kn(), a = 0;
|
|
11958
11958
|
for (let l = 0; l < n.length; l++) {
|
|
11959
11959
|
if (t.abortSignal?.aborted) {
|
|
11960
|
-
|
|
11960
|
+
Ze && console.log("Aborting loading because of abort signal");
|
|
11961
11961
|
break;
|
|
11962
11962
|
}
|
|
11963
11963
|
if (e !== this._createId) {
|
|
11964
|
-
|
|
11964
|
+
Ze && console.log("Aborting loading because create id changed", e, this._createId);
|
|
11965
11965
|
break;
|
|
11966
11966
|
}
|
|
11967
11967
|
const c = n[l];
|
|
11968
|
-
t?.onLoadingStart?.call(this, l, c),
|
|
11968
|
+
t?.onLoadingStart?.call(this, l, c), Ze && console.log("Context Load " + c);
|
|
11969
11969
|
const h = await r.loadSync(this, c, c, a, (d) => {
|
|
11970
11970
|
t.abortSignal?.aborted || (o.name = c, o.progress = d, o.index = l, o.count = n.length, t.onLoadingProgress?.call(this, o));
|
|
11971
11971
|
});
|
|
@@ -11975,7 +11975,7 @@ Possible solutions:
|
|
|
11975
11975
|
}) : console.warn("Could not load file: " + c);
|
|
11976
11976
|
}
|
|
11977
11977
|
if (e !== this._createId || t.abortSignal?.aborted) {
|
|
11978
|
-
|
|
11978
|
+
Ze && console.log("Aborting loading because create id changed or abort signal was set", e, this._createId);
|
|
11979
11979
|
for (const l of i)
|
|
11980
11980
|
if (l && l.file)
|
|
11981
11981
|
for (const c of l.file.scenes)
|
|
@@ -12013,11 +12013,11 @@ Possible solutions:
|
|
|
12013
12013
|
_renderlooperrors = 0;
|
|
12014
12014
|
/** Performs a full update step including script callbacks, rendering (unless isManagedExternally is set to false) and post render callbacks */
|
|
12015
12015
|
update(e, t) {
|
|
12016
|
-
if (t === void 0 && (t = null), L() ||
|
|
12016
|
+
if (t === void 0 && (t = null), L() || Ze || cO())
|
|
12017
12017
|
try {
|
|
12018
12018
|
this.internalStep(e, t), this._renderlooperrors = 0;
|
|
12019
12019
|
} catch (i) {
|
|
12020
|
-
this._renderlooperrors += 1, (L() ||
|
|
12020
|
+
this._renderlooperrors += 1, (L() || Ze) && (i instanceof Error || i instanceof TypeError) && Ae("Caught unhandled exception during render-loop - see console for details.", qi.Error), console.error("Frame #" + this.time.frame + `
|
|
12021
12021
|
`, i), this._renderlooperrors >= 3 && (console.warn("Stopping render loop due to error"), this.renderer.setAnimationLoop(null), ci.sendError(N.Current, "renderloop", i instanceof Error ? i : new Error(String(i)))), this.domElement.dispatchEvent(new CustomEvent("error", { detail: i }));
|
|
12022
12022
|
}
|
|
12023
12023
|
else
|
|
@@ -12210,10 +12210,26 @@ Possible solutions:
|
|
|
12210
12210
|
if (this._currentFrameEvent = -1, this.connection.sendBufferedMessagesNow(), this._stats) {
|
|
12211
12211
|
this._stats.end();
|
|
12212
12212
|
const e = this.time.fps < 20 ? 50 : 150;
|
|
12213
|
-
this.time.frameCount % e === 0
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12213
|
+
if (this.time.frameCount % e === 0 || this.time.frameCount === 1) {
|
|
12214
|
+
const t = window.performance && window.performance.memory ? `${(window.performance.memory.usedJSHeapSize / 1024 / 1024).toFixed(2)} MB` : "n/a";
|
|
12215
|
+
console.log(
|
|
12216
|
+
this.renderer.info.render.calls + " DrawCalls",
|
|
12217
|
+
`
|
|
12218
|
+
Render:`,
|
|
12219
|
+
{
|
|
12220
|
+
shaders: this.renderer.info.programs?.length,
|
|
12221
|
+
...this.renderer.info.render
|
|
12222
|
+
},
|
|
12223
|
+
`
|
|
12224
|
+
Memory:`,
|
|
12225
|
+
{
|
|
12226
|
+
usedMemory: t,
|
|
12227
|
+
...this.renderer.info.memory
|
|
12228
|
+
},
|
|
12229
|
+
`
|
|
12230
|
+
Target Framerate: ` + this.targetFrameRate
|
|
12231
|
+
);
|
|
12232
|
+
}
|
|
12217
12233
|
}
|
|
12218
12234
|
this._dispatchReadyAfterFrame && (this._dispatchReadyAfterFrame = !1, this.domElement.dispatchEvent(new CustomEvent("ready")), pe.dispatchCallback(ue.ContextFirstFrameRendered, this));
|
|
12219
12235
|
}
|
|
@@ -12693,7 +12709,7 @@ function Og(s, e) {
|
|
|
12693
12709
|
progressive: !0
|
|
12694
12710
|
}), s;
|
|
12695
12711
|
}
|
|
12696
|
-
const
|
|
12712
|
+
const et = function(s) {
|
|
12697
12713
|
return u(s);
|
|
12698
12714
|
}, u = function(s) {
|
|
12699
12715
|
if (s === void 0 && (s = null), !Array.isArray(s))
|
|
@@ -13923,7 +13939,7 @@ function eM(s, e) {
|
|
|
13923
13939
|
};
|
|
13924
13940
|
}
|
|
13925
13941
|
var sr = /* @__PURE__ */ ((s) => (s[s.If = 1] = "If", s[s.IfNot = 2] = "IfNot", s[s.Greater = 3] = "Greater", s[s.Less = 4] = "Less", s[s.Equals = 6] = "Equals", s[s.NotEqual = 7] = "NotEqual", s))(sr || {}), Wv = /* @__PURE__ */ ((s) => (s[s.Float = 1] = "Float", s[s.Int = 3] = "Int", s[s.Bool = 4] = "Bool", s[s.Trigger = 9] = "Trigger", s))(Wv || {});
|
|
13926
|
-
const
|
|
13942
|
+
const st = x("debuganimatorcontroller"), Fh = x("debugrootmotion");
|
|
13927
13943
|
class wn {
|
|
13928
13944
|
/**
|
|
13929
13945
|
* Creates an AnimatorController from a set of animation clips.
|
|
@@ -13994,7 +14010,7 @@ class wn {
|
|
|
13994
14010
|
const r = this.model.layers[t].stateMachine;
|
|
13995
14011
|
for (const a of r.states)
|
|
13996
14012
|
if (a.name === e || a.hash === e) {
|
|
13997
|
-
|
|
14013
|
+
st && console.log("transition to ", a), this.transitionTo(a, n, i);
|
|
13998
14014
|
return;
|
|
13999
14015
|
}
|
|
14000
14016
|
console.warn("Could not find " + e + " to play");
|
|
@@ -14073,7 +14089,7 @@ class wn {
|
|
|
14073
14089
|
* @param name - The name or hash identifier of the trigger parameter
|
|
14074
14090
|
*/
|
|
14075
14091
|
setTrigger(e) {
|
|
14076
|
-
|
|
14092
|
+
st && console.log("SET TRIGGER", e);
|
|
14077
14093
|
const t = typeof e == "string" ? "name" : "hash";
|
|
14078
14094
|
return this.model?.parameters?.filter((i) => i[t] === e).forEach((i) => i.value = !0);
|
|
14079
14095
|
}
|
|
@@ -14230,7 +14246,7 @@ class wn {
|
|
|
14230
14246
|
clone() {
|
|
14231
14247
|
if (typeof this.model == "string")
|
|
14232
14248
|
return console.warn("AnimatorController has not been resolved, can not create model from string", this.model), null;
|
|
14233
|
-
|
|
14249
|
+
st && console.warn("AnimatorController clone()", this.model);
|
|
14234
14250
|
const e = gu(this.model, (i, n, o) => o == null ? !0 : !(o.type === "Object3D" || o.isObject3D === !0 || E1(o) || o.tracks !== void 0 || o instanceof wn));
|
|
14235
14251
|
return console.assert(e !== this.model), new wn(e);
|
|
14236
14252
|
}
|
|
@@ -14257,7 +14273,7 @@ class wn {
|
|
|
14257
14273
|
return this._activeState;
|
|
14258
14274
|
}
|
|
14259
14275
|
constructor(e) {
|
|
14260
|
-
this.model = e,
|
|
14276
|
+
this.model = e, st && console.log(this);
|
|
14261
14277
|
}
|
|
14262
14278
|
_activeStates = [];
|
|
14263
14279
|
updateActiveStates(e) {
|
|
@@ -14267,15 +14283,15 @@ class wn {
|
|
|
14267
14283
|
this._activeStates.splice(t, 1), t--;
|
|
14268
14284
|
else {
|
|
14269
14285
|
const o = n.action;
|
|
14270
|
-
o.weight = e, o.getEffectiveWeight() <= 0 && !o.isRunning() && (
|
|
14286
|
+
o.weight = e, o.getEffectiveWeight() <= 0 && !o.isRunning() && (st && console.debug("REMOVE", i.name, o.getEffectiveWeight(), o.isRunning(), o.isScheduled()), this._activeStates.splice(t, 1), t--);
|
|
14271
14287
|
}
|
|
14272
14288
|
}
|
|
14273
14289
|
}
|
|
14274
14290
|
setStartTransition() {
|
|
14275
|
-
this.model.layers.length > 1 && (
|
|
14291
|
+
this.model.layers.length > 1 && (st || L()) && console.warn("Multiple layers are not supported yet " + this.animator?.name);
|
|
14276
14292
|
for (const e of this.model.layers) {
|
|
14277
14293
|
const t = e.stateMachine;
|
|
14278
|
-
t.defaultState === void 0 && (
|
|
14294
|
+
t.defaultState === void 0 && (st && console.warn("AnimatorController default state is undefined, will assign state 0 as default", e), t.defaultState = 0);
|
|
14279
14295
|
const i = t.states[t.defaultState];
|
|
14280
14296
|
this.transitionTo(i, 0, this.normalizedStartOffset);
|
|
14281
14297
|
break;
|
|
@@ -14308,7 +14324,7 @@ class wn {
|
|
|
14308
14324
|
const f = this.model.parameters.find((p) => p.name === d.parameter);
|
|
14309
14325
|
f?.type === Wv.Trigger && f.value && (f.value = !1);
|
|
14310
14326
|
}
|
|
14311
|
-
if (i.clampWhenFinished = !0,
|
|
14327
|
+
if (i.clampWhenFinished = !0, st) {
|
|
14312
14328
|
const d = this.getState(o.destinationState, 0);
|
|
14313
14329
|
console.log(`Transition to ${o.destinationState} / ${d?.name}`, o, `
|
|
14314
14330
|
Timescale: ` + i.timeScale, `
|
|
@@ -14336,7 +14352,7 @@ Exit Time: ` + c, o.hasExitTime);
|
|
|
14336
14352
|
t.speedParameter && (i *= this.getFloat(t.speedParameter)), i !== void 0 && (e.timeScale = i * this._speed);
|
|
14337
14353
|
}
|
|
14338
14354
|
getState(e, t) {
|
|
14339
|
-
return typeof e == "number" && (e == -1 && (e = this.model.layers[t].stateMachine.defaultState, e === void 0 && (
|
|
14355
|
+
return typeof e == "number" && (e == -1 && (e = this.model.layers[t].stateMachine.defaultState, e === void 0 && (st && console.warn("AnimatorController default state is undefined: ", this.model, "Layer: " + t), e = 0)), e = this.model.layers[t].stateMachine.states[e]), e;
|
|
14340
14356
|
}
|
|
14341
14357
|
/**
|
|
14342
14358
|
* These actions have been active previously but not faded out because we entered a state that has no real animation - no duration. In which case we hold the previously active actions until they are faded out.
|
|
@@ -14373,7 +14389,7 @@ Exit Time: ` + c, o.hasExitTime);
|
|
|
14373
14389
|
if (c?.duration <= 0 && c.tracks.length <= 0 ? r && this._heldActions.push(r) : r && (r.fadeOut(t), this.releaseHeldActions(t)), l) {
|
|
14374
14390
|
if (i = Math.max(0, Math.min(1, i)), e.cycleOffsetParameter) {
|
|
14375
14391
|
let d = this.getFloat(e.cycleOffsetParameter);
|
|
14376
|
-
typeof d == "number" ? (d < 0 && (d += 1), i += d, i %= 1) :
|
|
14392
|
+
typeof d == "number" ? (d < 0 && (d += 1), i += d, i %= 1) : st && console.warn("AnimatorController cycle offset parameter is not a number", e.cycleOffsetParameter);
|
|
14377
14393
|
} else typeof e.cycleOffset == "number" && (i += e.cycleOffset, i %= 1);
|
|
14378
14394
|
l.isRunning() && l.stop(), l.reset(), l.enabled = !0, this.setTimescale(l, e);
|
|
14379
14395
|
const h = e.motion.clip.duration;
|
|
@@ -14382,8 +14398,8 @@ Exit Time: ` + c, o.hasExitTime);
|
|
|
14382
14398
|
for (const f of this._activeState.behaviours)
|
|
14383
14399
|
f.instance?.onStateEnter?.call(f.instance, this.animator, d, n);
|
|
14384
14400
|
}
|
|
14385
|
-
} else
|
|
14386
|
-
|
|
14401
|
+
} else st && (e.__warned_no_motion || (e.__warned_no_motion = !0, console.warn("No action", e.motion, this)));
|
|
14402
|
+
st && console.log("TRANSITION FROM " + a?.name + " TO " + e.name, t, r, l, l?.getEffectiveTimeScale(), l?.getEffectiveWeight(), l?.isRunning(), l?.isScheduled(), l?.paused);
|
|
14387
14403
|
}
|
|
14388
14404
|
createAction(e) {
|
|
14389
14405
|
if (this._mixer.existingAction(e) && this._mixer.uncacheAction(e, this.animator?.gameObject), this.animator?.applyRootMotion) {
|
|
@@ -14413,7 +14429,7 @@ Exit Time: ` + c, o.hasExitTime);
|
|
|
14413
14429
|
return !1;
|
|
14414
14430
|
}
|
|
14415
14431
|
createActions(e) {
|
|
14416
|
-
|
|
14432
|
+
st && console.log("AnimatorController createActions", this.model);
|
|
14417
14433
|
for (const t of this.model.layers) {
|
|
14418
14434
|
const i = t.stateMachine;
|
|
14419
14435
|
for (let n = 0; n < i.states.length; n++) {
|
|
@@ -14421,12 +14437,12 @@ Exit Time: ` + c, o.hasExitTime);
|
|
|
14421
14437
|
o.transitions || (o.transitions = []);
|
|
14422
14438
|
for (const r of o.transitions)
|
|
14423
14439
|
r.conditions || (r.conditions = []);
|
|
14424
|
-
if (o.motion || (
|
|
14440
|
+
if (o.motion || (st && console.warn("No motion", o), o.motion = eM(o.name)), this.animator && o.motion.clips) {
|
|
14425
14441
|
const r = o.motion.clips?.find((a) => a.node.name === this.animator?.gameObject?.name);
|
|
14426
|
-
r ? o.motion.clip = r.clip : (
|
|
14442
|
+
r ? o.motion.clip = r.clip : (st || L()) && console.warn('Could not find clip for animator "' + this.animator?.gameObject?.name + '"', o.motion.clips.map((a) => a.node.name));
|
|
14427
14443
|
}
|
|
14428
14444
|
if (!o.motion.clip) {
|
|
14429
|
-
|
|
14445
|
+
st && console.warn("No clip assigned to state", o);
|
|
14430
14446
|
const r = new ki(void 0, void 0, []);
|
|
14431
14447
|
o.motion.clip = r;
|
|
14432
14448
|
}
|
|
@@ -14436,7 +14452,7 @@ Exit Time: ` + c, o.hasExitTime);
|
|
|
14436
14452
|
const a = this.createAction(r);
|
|
14437
14453
|
o.motion.action = a;
|
|
14438
14454
|
} else
|
|
14439
|
-
(
|
|
14455
|
+
(st || L()) && console.warn("No valid animationclip assigned", o);
|
|
14440
14456
|
}
|
|
14441
14457
|
if (o.behaviours && Array.isArray(o.behaviours))
|
|
14442
14458
|
for (const r of o.behaviours) {
|
|
@@ -14444,9 +14460,9 @@ Exit Time: ` + c, o.hasExitTime);
|
|
|
14444
14460
|
const a = P.get(r.typeName);
|
|
14445
14461
|
if (a) {
|
|
14446
14462
|
const l = new a();
|
|
14447
|
-
l.isStateMachineBehaviour && (l._context = this.context ?? void 0, Va(l, r.properties), r.instance = l),
|
|
14463
|
+
l.isStateMachineBehaviour && (l._context = this.context ?? void 0, Va(l, r.properties), r.instance = l), st && console.log("Created animator controller behaviour", o.name, r.typeName, r.properties, l);
|
|
14448
14464
|
} else
|
|
14449
|
-
(
|
|
14465
|
+
(st || L()) && console.warn("Could not find AnimatorBehaviour type: " + r.typeName);
|
|
14450
14466
|
}
|
|
14451
14467
|
}
|
|
14452
14468
|
}
|
|
@@ -14500,7 +14516,7 @@ class eb {
|
|
|
14500
14516
|
this.createdInterpolant && this.originalEvaluate && (this.createdInterpolant.evaluate = this.originalEvaluate), this.track = void 0, this.createdInterpolant = null, this.originalEvaluate = void 0, this.customEvaluate = void 0;
|
|
14501
14517
|
}
|
|
14502
14518
|
}
|
|
14503
|
-
class
|
|
14519
|
+
class rt {
|
|
14504
14520
|
static lastObjPosition = {};
|
|
14505
14521
|
static lastObjRotation = {};
|
|
14506
14522
|
// we remove the first keyframe rotation from the space rotation when updating
|
|
@@ -14527,29 +14543,29 @@ class ot {
|
|
|
14527
14543
|
positionChange = new y();
|
|
14528
14544
|
rotationChange = new V();
|
|
14529
14545
|
constructor(e, t, i, n, o) {
|
|
14530
|
-
if (this.context = e, this.root = t, this.clip = i,
|
|
14546
|
+
if (this.context = e, this.root = t, this.clip = i, rt.firstKeyframeRotation[this.cacheId] || (rt.firstKeyframeRotation[this.cacheId] = new V()), o) {
|
|
14531
14547
|
const r = o.values;
|
|
14532
|
-
|
|
14548
|
+
rt.firstKeyframeRotation[this.cacheId].set(r[0], r[1], r[2], r[3]);
|
|
14533
14549
|
}
|
|
14534
|
-
|
|
14550
|
+
rt.spaceRotation[this.cacheId] || (rt.spaceRotation[this.cacheId] = new V()), rt.effectiveSpaceRotation[this.cacheId] || (rt.effectiveSpaceRotation[this.cacheId] = new V()), rt.clipOffsetRotation[this.cacheId] = new V(), o && rt.clipOffsetRotation[this.cacheId].set(o.values[0], o.values[1], o.values[2], o.values[3]).invert(), this.handlePosition(i, n), this.handleRotation(i, o);
|
|
14535
14551
|
}
|
|
14536
14552
|
onStart(e) {
|
|
14537
14553
|
if (e.getClip() !== this.clip) return;
|
|
14538
|
-
|
|
14539
|
-
const t =
|
|
14540
|
-
if (
|
|
14541
|
-
const i = new
|
|
14554
|
+
rt.lastObjRotation[this.cacheId] || (rt.lastObjRotation[this.cacheId] = this.root.quaternion.clone());
|
|
14555
|
+
const t = rt.lastObjRotation[this.cacheId];
|
|
14556
|
+
if (rt.spaceRotation[this.cacheId].copy(t), Fh) {
|
|
14557
|
+
const i = new ct().setFromQuaternion(t);
|
|
14542
14558
|
console.log("START", this.clip.name, F.toDegrees(i.y), this.root.position.z);
|
|
14543
14559
|
}
|
|
14544
14560
|
}
|
|
14545
14561
|
getClipRotationOffset() {
|
|
14546
|
-
return
|
|
14562
|
+
return rt.clipOffsetRotation[this.cacheId];
|
|
14547
14563
|
}
|
|
14548
14564
|
_prevTime = 0;
|
|
14549
14565
|
handlePosition(e, t) {
|
|
14550
14566
|
if (t) {
|
|
14551
14567
|
const i = this.root;
|
|
14552
|
-
Fh && i.add(new Oi()),
|
|
14568
|
+
Fh && i.add(new Oi()), rt.lastObjPosition[this.cacheId] || (rt.lastObjPosition[this.cacheId] = this.root.position.clone());
|
|
14553
14569
|
const n = new y(), o = new y();
|
|
14554
14570
|
this.positionWrapper = new eb(t, (r, a) => {
|
|
14555
14571
|
const l = this.action.getEffectiveWeight();
|
|
@@ -14561,9 +14577,9 @@ class ot {
|
|
|
14561
14577
|
handleRotation(e, t) {
|
|
14562
14578
|
if (t) {
|
|
14563
14579
|
if (Fh) {
|
|
14564
|
-
const r = t.values, a = new
|
|
14580
|
+
const r = t.values, a = new ct().setFromQuaternion(new V(r[0], r[1], r[2], r[3]));
|
|
14565
14581
|
console.log(e.name, t.name, "FIRST ROTATION IN TRACK", F.toDegrees(a.y));
|
|
14566
|
-
const l = t.values.length - 4, c = new V().set(r[l], r[l + 1], r[l + 2], r[l + 3]), h = new
|
|
14582
|
+
const l = t.values.length - 4, c = new V().set(r[l], r[l + 1], r[l + 2], r[l + 3]), h = new ct().setFromQuaternion(c);
|
|
14567
14583
|
console.log(e.name, t.name, "LAST ROTATION IN TRACK", F.toDegrees(h.y));
|
|
14568
14584
|
}
|
|
14569
14585
|
let i = 0;
|
|
@@ -14576,7 +14592,7 @@ class ot {
|
|
|
14576
14592
|
this.positionChange.set(0, 0, 0), this.rotationChange.set(0, 0, 0, 1);
|
|
14577
14593
|
}
|
|
14578
14594
|
onAfterUpdate(e) {
|
|
14579
|
-
return !this.action || (e *= this.action.getEffectiveWeight(), e <= 0) ? !1 : (this.positionChange.multiplyScalar(e), this.rotationChange.slerp(
|
|
14595
|
+
return !this.action || (e *= this.action.getEffectiveWeight(), e <= 0) ? !1 : (this.positionChange.multiplyScalar(e), this.rotationChange.slerp(rt.identityQuaternion, 1 - e), !0);
|
|
14580
14596
|
}
|
|
14581
14597
|
}
|
|
14582
14598
|
class tM {
|
|
@@ -14585,13 +14601,13 @@ class tM {
|
|
|
14585
14601
|
root;
|
|
14586
14602
|
basePosition = new y();
|
|
14587
14603
|
baseQuaternion = new V();
|
|
14588
|
-
baseRotation = new
|
|
14604
|
+
baseRotation = new ct();
|
|
14589
14605
|
constructor(e) {
|
|
14590
14606
|
this.controller = e;
|
|
14591
14607
|
}
|
|
14592
14608
|
createClip(e, t, i) {
|
|
14593
14609
|
this.root = t, t && "name" in t && t.name;
|
|
14594
|
-
const n = this.findRootTrack(i, ".position"), o = this.findRootTrack(i, ".quaternion"), r = new
|
|
14610
|
+
const n = this.findRootTrack(i, ".position"), o = this.findRootTrack(i, ".quaternion"), r = new rt(this.controller.context, t, i, n, o);
|
|
14595
14611
|
this.handler.push(r);
|
|
14596
14612
|
const a = e.clipAction(i);
|
|
14597
14613
|
return r.action = a, a;
|
|
@@ -15385,7 +15401,7 @@ var T;
|
|
|
15385
15401
|
e.load = n;
|
|
15386
15402
|
})(s.POSTPROCESSING_AO || (s.POSTPROCESSING_AO = {}));
|
|
15387
15403
|
})(T || (T = {}));
|
|
15388
|
-
var Pt = /* @__PURE__ */ ((s) => (s[s.Average = 0] = "Average", s[s.Multiply = 1] = "Multiply", s[s.Minimum = 2] = "Minimum", s[s.Maximum = 3] = "Maximum", s))(Pt || {}), Mg = /* @__PURE__ */ ((s) => (s[s.Discrete = 0] = "Discrete", s[s.Continuous = 1] = "Continuous", s))(Mg || {}),
|
|
15404
|
+
var Pt = /* @__PURE__ */ ((s) => (s[s.Average = 0] = "Average", s[s.Multiply = 1] = "Multiply", s[s.Minimum = 2] = "Minimum", s[s.Maximum = 3] = "Maximum", s))(Pt || {}), Mg = /* @__PURE__ */ ((s) => (s[s.Discrete = 0] = "Discrete", s[s.Continuous = 1] = "Continuous", s))(Mg || {}), Ke = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.FreezePositionX = 2] = "FreezePositionX", s[s.FreezePositionY = 4] = "FreezePositionY", s[s.FreezePositionZ = 8] = "FreezePositionZ", s[s.FreezePosition = 14] = "FreezePosition", s[s.FreezeRotationX = 16] = "FreezeRotationX", s[s.FreezeRotationY = 32] = "FreezeRotationY", s[s.FreezeRotationZ = 64] = "FreezeRotationZ", s[s.FreezeRotation = 112] = "FreezeRotation", s[s.FreezeAll = 126] = "FreezeAll", s))(Ke || {}), Ql = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.X = 2] = "X", s[s.Y = 4] = "Y", s[s.Z = 8] = "Z", s[s.All = -1] = "All", s))(Ql || {});
|
|
15389
15405
|
const Nt = function(s, e) {
|
|
15390
15406
|
return function(t, i, n) {
|
|
15391
15407
|
dM(t, i, n, s, e);
|
|
@@ -15541,7 +15557,7 @@ const fi = class md extends E {
|
|
|
15541
15557
|
_mass = 0;
|
|
15542
15558
|
useGravity = !0;
|
|
15543
15559
|
centerOfMass = new y(0, 0, 0);
|
|
15544
|
-
constraints =
|
|
15560
|
+
constraints = Ke.None;
|
|
15545
15561
|
isKinematic = !1;
|
|
15546
15562
|
drag = 0;
|
|
15547
15563
|
angularDrag = 1;
|
|
@@ -15550,51 +15566,51 @@ const fi = class md extends E {
|
|
|
15550
15566
|
collisionDetectionMode = Mg.Discrete;
|
|
15551
15567
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15552
15568
|
get lockPositionX() {
|
|
15553
|
-
return (this.constraints &
|
|
15569
|
+
return (this.constraints & Ke.FreezePositionX) !== 0;
|
|
15554
15570
|
}
|
|
15555
15571
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15556
15572
|
get lockPositionY() {
|
|
15557
|
-
return (this.constraints &
|
|
15573
|
+
return (this.constraints & Ke.FreezePositionY) !== 0;
|
|
15558
15574
|
}
|
|
15559
15575
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15560
15576
|
get lockPositionZ() {
|
|
15561
|
-
return (this.constraints &
|
|
15577
|
+
return (this.constraints & Ke.FreezePositionZ) !== 0;
|
|
15562
15578
|
}
|
|
15563
15579
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15564
15580
|
get lockRotationX() {
|
|
15565
|
-
return (this.constraints &
|
|
15581
|
+
return (this.constraints & Ke.FreezeRotationX) !== 0;
|
|
15566
15582
|
}
|
|
15567
15583
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15568
15584
|
get lockRotationY() {
|
|
15569
|
-
return (this.constraints &
|
|
15585
|
+
return (this.constraints & Ke.FreezeRotationY) !== 0;
|
|
15570
15586
|
}
|
|
15571
15587
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15572
15588
|
get lockRotationZ() {
|
|
15573
|
-
return (this.constraints &
|
|
15589
|
+
return (this.constraints & Ke.FreezeRotationZ) !== 0;
|
|
15574
15590
|
}
|
|
15575
15591
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15576
15592
|
set lockPositionX(e) {
|
|
15577
|
-
e ? this.constraints |=
|
|
15593
|
+
e ? this.constraints |= Ke.FreezePositionX : this.constraints &= ~Ke.FreezePositionX;
|
|
15578
15594
|
}
|
|
15579
15595
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15580
15596
|
set lockPositionY(e) {
|
|
15581
|
-
e ? this.constraints |=
|
|
15597
|
+
e ? this.constraints |= Ke.FreezePositionY : this.constraints &= ~Ke.FreezePositionY;
|
|
15582
15598
|
}
|
|
15583
15599
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15584
15600
|
set lockPositionZ(e) {
|
|
15585
|
-
e ? this.constraints |=
|
|
15601
|
+
e ? this.constraints |= Ke.FreezePositionZ : this.constraints &= ~Ke.FreezePositionZ;
|
|
15586
15602
|
}
|
|
15587
15603
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15588
15604
|
set lockRotationX(e) {
|
|
15589
|
-
e ? this.constraints |=
|
|
15605
|
+
e ? this.constraints |= Ke.FreezeRotationX : this.constraints &= ~Ke.FreezeRotationX;
|
|
15590
15606
|
}
|
|
15591
15607
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15592
15608
|
set lockRotationY(e) {
|
|
15593
|
-
e ? this.constraints |=
|
|
15609
|
+
e ? this.constraints |= Ke.FreezeRotationY : this.constraints &= ~Ke.FreezeRotationY;
|
|
15594
15610
|
}
|
|
15595
15611
|
/** @link https://rapier.rs/docs/user_guides/javascript/rigid_bodies#locking-translationsrotations */
|
|
15596
15612
|
set lockRotationZ(e) {
|
|
15597
|
-
e ? this.constraints |=
|
|
15613
|
+
e ? this.constraints |= Ke.FreezeRotationZ : this.constraints &= ~Ke.FreezeRotationZ;
|
|
15598
15614
|
}
|
|
15599
15615
|
/** Gravity is such a common force that it is implemented as a special case (even if it could easily be implemented by the user using force application). Note however that a change of gravity won't automatically wake-up the sleeping bodies so keep in mind that you may want to wake them up manually before a gravity change.
|
|
15600
15616
|
*
|
|
@@ -15786,7 +15802,7 @@ Ei([
|
|
|
15786
15802
|
Ei([
|
|
15787
15803
|
Nt()
|
|
15788
15804
|
], fi.prototype, "dominanceGroup", 2);
|
|
15789
|
-
let
|
|
15805
|
+
let Je = fi;
|
|
15790
15806
|
new y();
|
|
15791
15807
|
new y();
|
|
15792
15808
|
const io = x("debugsync"), jc = "STRS";
|
|
@@ -15874,7 +15890,7 @@ class Jn extends E {
|
|
|
15874
15890
|
receivedDataCallback = null;
|
|
15875
15891
|
/** @internal */
|
|
15876
15892
|
awake() {
|
|
15877
|
-
io && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new y(), this._targetRotation = new V(), this.lastPosition = new y(), this.lastRotation = new V(), this.lastScale = new y(), this.rb = C.getComponentInChildren(this.gameObject,
|
|
15893
|
+
io && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new y(), this._targetRotation = new V(), this.lastPosition = new y(), this.lastRotation = new V(), this.lastScale = new y(), this.rb = C.getComponentInChildren(this.gameObject, Je), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new nv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(ie.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(jc, this.receivedDataCallback);
|
|
15878
15894
|
}
|
|
15879
15895
|
/** @internal */
|
|
15880
15896
|
onDestroy() {
|
|
@@ -15887,7 +15903,7 @@ class Jn extends E {
|
|
|
15887
15903
|
const e = this.context.connection.tryGetState(this.guid);
|
|
15888
15904
|
e && this.onReceivedData(e);
|
|
15889
15905
|
}
|
|
15890
|
-
tempEuler = new
|
|
15906
|
+
tempEuler = new ct();
|
|
15891
15907
|
/**
|
|
15892
15908
|
* Handles incoming network data for this transform
|
|
15893
15909
|
* @param data The model containing transform information
|
|
@@ -16141,7 +16157,7 @@ class de {
|
|
|
16141
16157
|
if (r && (a = r.guid), a) {
|
|
16142
16158
|
const l = e[a];
|
|
16143
16159
|
if (l) {
|
|
16144
|
-
const c = o.arguments?.map((h) => h instanceof Object && h.uuid ? e[h.uuid] : h?.isComponent ? e[h.guid] : h);
|
|
16160
|
+
const c = o.arguments?.map((h) => h instanceof Object && h.uuid ? e[h.uuid].clone : h?.isComponent ? e[h.guid].clone : h);
|
|
16145
16161
|
t.push(new ao(l.clone, o.methodName, c, o.enabled));
|
|
16146
16162
|
} else L() && console.warn("Could not find target for event listener");
|
|
16147
16163
|
}
|
|
@@ -16236,14 +16252,14 @@ class gM extends sn {
|
|
|
16236
16252
|
const HD = new gM();
|
|
16237
16253
|
class yM extends sn {
|
|
16238
16254
|
constructor() {
|
|
16239
|
-
super([
|
|
16255
|
+
super([ct], "EulerSerializer");
|
|
16240
16256
|
}
|
|
16241
16257
|
onDeserialize(e, t) {
|
|
16242
16258
|
if (e != null) {
|
|
16243
16259
|
if (e.order)
|
|
16244
|
-
return new
|
|
16260
|
+
return new ct(e.x, e.y, e.z, e.order);
|
|
16245
16261
|
if (e.x != null)
|
|
16246
|
-
return new
|
|
16262
|
+
return new ct(e.x, e.y, e.z);
|
|
16247
16263
|
}
|
|
16248
16264
|
}
|
|
16249
16265
|
onSerialize(e, t) {
|
|
@@ -17904,7 +17920,7 @@ ti([
|
|
|
17904
17920
|
u()
|
|
17905
17921
|
], $t.prototype, "backgroundIntensity", 1);
|
|
17906
17922
|
ti([
|
|
17907
|
-
u(
|
|
17923
|
+
u(ct)
|
|
17908
17924
|
], $t.prototype, "backgroundRotation", 1);
|
|
17909
17925
|
ti([
|
|
17910
17926
|
u()
|
|
@@ -19434,15 +19450,15 @@ class Pn extends E {
|
|
|
19434
19450
|
filter;
|
|
19435
19451
|
/** @internal */
|
|
19436
19452
|
awake() {
|
|
19437
|
-
super.awake(), this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(
|
|
19453
|
+
super.awake(), this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(Je));
|
|
19438
19454
|
}
|
|
19439
19455
|
/** @internal */
|
|
19440
19456
|
start() {
|
|
19441
|
-
this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(
|
|
19457
|
+
this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(Je));
|
|
19442
19458
|
}
|
|
19443
19459
|
/** @internal */
|
|
19444
19460
|
onEnable() {
|
|
19445
|
-
this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(
|
|
19461
|
+
this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(Je));
|
|
19446
19462
|
}
|
|
19447
19463
|
/** @internal */
|
|
19448
19464
|
onDisable() {
|
|
@@ -19471,7 +19487,7 @@ class Pn extends E {
|
|
|
19471
19487
|
}
|
|
19472
19488
|
}
|
|
19473
19489
|
pi([
|
|
19474
|
-
u(
|
|
19490
|
+
u(Je)
|
|
19475
19491
|
], Pn.prototype, "attachedRigidbody");
|
|
19476
19492
|
pi([
|
|
19477
19493
|
u()
|
|
@@ -19523,7 +19539,7 @@ const jg = class tw extends Pn {
|
|
|
19523
19539
|
*/
|
|
19524
19540
|
static add(e, t) {
|
|
19525
19541
|
const i = Gn(e, tw);
|
|
19526
|
-
return i.autoFit(), t?.rigidbody === !0 && Gn(e,
|
|
19542
|
+
return i.autoFit(), t?.rigidbody === !0 && Gn(e, Je, { isKinematic: !1 }), i;
|
|
19527
19543
|
}
|
|
19528
19544
|
size = new y(1, 1, 1);
|
|
19529
19545
|
center = new y(0, 0, 0);
|
|
@@ -19642,7 +19658,7 @@ class tl extends E {
|
|
|
19642
19658
|
height = 2;
|
|
19643
19659
|
_rigidbody = null;
|
|
19644
19660
|
get rigidbody() {
|
|
19645
|
-
return this._rigidbody ? this._rigidbody : (this._rigidbody = this.gameObject.getComponent(
|
|
19661
|
+
return this._rigidbody ? this._rigidbody : (this._rigidbody = this.gameObject.getComponent(Je), this._rigidbody || (this._rigidbody = this.gameObject.addComponent(Je)), this.rigidbody);
|
|
19646
19662
|
}
|
|
19647
19663
|
_activeGroundCollisions;
|
|
19648
19664
|
awake() {
|
|
@@ -20107,7 +20123,7 @@ const Ro = class Ni extends E {
|
|
|
20107
20123
|
for (const i of this._dragHandlers.values())
|
|
20108
20124
|
i.setTargetObject(e);
|
|
20109
20125
|
const t = "_rigidbody-was-kinematic";
|
|
20110
|
-
this._rigidbody?.[t] === !1 && (this._rigidbody.isKinematic = !1, this._rigidbody[t] = void 0), this._rigidbody = null, e && (this._rigidbody = C.getComponentInChildren(e,
|
|
20126
|
+
this._rigidbody?.[t] === !1 && (this._rigidbody.isKinematic = !1, this._rigidbody[t] = void 0), this._rigidbody = null, e && (this._rigidbody = C.getComponentInChildren(e, Je), this._rigidbody?.isKinematic === !1 && (this._rigidbody.isKinematic = !0, this._rigidbody[t] = !1));
|
|
20111
20127
|
}
|
|
20112
20128
|
_rigidbody = null;
|
|
20113
20129
|
// future:
|
|
@@ -20240,7 +20256,7 @@ const Ro = class Ni extends E {
|
|
|
20240
20256
|
this._isDragging = !0;
|
|
20241
20257
|
const n = C.getComponentInChildren(i, Jn);
|
|
20242
20258
|
Wn && console.log("DRAG START", n, i), n && (n.fastMode = !0, n?.requestOwnership()), this._marker = C.addComponent(i, ju), this._draggingRigidbodies.length = 0;
|
|
20243
|
-
const o = C.getComponentsInChildren(i,
|
|
20259
|
+
const o = C.getComponentsInChildren(i, Je);
|
|
20244
20260
|
o && this._draggingRigidbodies.push(...o);
|
|
20245
20261
|
}
|
|
20246
20262
|
/**
|
|
@@ -21801,7 +21817,14 @@ function hw(s) {
|
|
|
21801
21817
|
if (s.uniforms) {
|
|
21802
21818
|
Dn && console.log("Uniforms:", s.uniforms);
|
|
21803
21819
|
for (const t in s.uniforms)
|
|
21804
|
-
e(t, t), t
|
|
21820
|
+
switch (e(t, t), t) {
|
|
21821
|
+
case "_Color":
|
|
21822
|
+
e("color", t);
|
|
21823
|
+
break;
|
|
21824
|
+
case "_map":
|
|
21825
|
+
e("map", t);
|
|
21826
|
+
break;
|
|
21827
|
+
}
|
|
21805
21828
|
}
|
|
21806
21829
|
function e(t, i) {
|
|
21807
21830
|
Object.getOwnPropertyDescriptor(s, t) || Object.defineProperty(s, t, {
|
|
@@ -23924,7 +23947,7 @@ function Pw(s) {
|
|
|
23924
23947
|
return t;
|
|
23925
23948
|
}
|
|
23926
23949
|
const rE = new y(), aE = new V(), lE = new y(1, 1, 1);
|
|
23927
|
-
class
|
|
23950
|
+
class lt {
|
|
23928
23951
|
static USDObject_export_id = 0;
|
|
23929
23952
|
uuid;
|
|
23930
23953
|
name;
|
|
@@ -23978,11 +24001,11 @@ class at {
|
|
|
23978
24001
|
needsOrient = !1;
|
|
23979
24002
|
needsScale = !1;
|
|
23980
24003
|
static createEmptyParent(e) {
|
|
23981
|
-
const t = new
|
|
24004
|
+
const t = new lt(Ps.generateUUID(), e.name + "_empty_" + lt.USDObject_export_id++, e.transform), i = e.parent;
|
|
23982
24005
|
return i && i.add(t), t.add(e), t.isDynamic = !0, e.transform = null, t;
|
|
23983
24006
|
}
|
|
23984
24007
|
static createEmpty() {
|
|
23985
|
-
const e = new
|
|
24008
|
+
const e = new lt(Ps.generateUUID(), "Empty_" + lt.USDObject_export_id++);
|
|
23986
24009
|
return e.isDynamic = !0, e;
|
|
23987
24010
|
}
|
|
23988
24011
|
constructor(e, t, i = null, n = null, o = null, r = null, a = null, l = null) {
|
|
@@ -23999,7 +24022,7 @@ class at {
|
|
|
23999
24022
|
return !this.geometry;
|
|
24000
24023
|
}
|
|
24001
24024
|
clone() {
|
|
24002
|
-
const e = new
|
|
24025
|
+
const e = new lt(Ps.generateUUID(), this.name, this.transform, this.geometry, this.material);
|
|
24003
24026
|
return e.isDynamic = this.isDynamic, e;
|
|
24004
24027
|
}
|
|
24005
24028
|
deepClone() {
|
|
@@ -24034,7 +24057,7 @@ class at {
|
|
|
24034
24057
|
i && i.forEach((n) => n(e, t));
|
|
24035
24058
|
}
|
|
24036
24059
|
}
|
|
24037
|
-
class Ow extends
|
|
24060
|
+
class Ow extends lt {
|
|
24038
24061
|
stageLength;
|
|
24039
24062
|
get isDocumentRoot() {
|
|
24040
24063
|
return !0;
|
|
@@ -24271,20 +24294,20 @@ function kw(s, e, t, i) {
|
|
|
24271
24294
|
if (s.position.x === 0 && s.position.y === 0 && s.position.z === 0 && (a.position = null), s.quaternion.x === 0 && s.quaternion.y === 0 && s.quaternion.z === 0 && s.quaternion.w === 1 && (a.quaternion = null), s.scale.x === 1 && s.scale.y === 1 && s.scale.z === 1 && (a.scale = null), (s instanceof H || s instanceof mo) && (o = s.geometry, r = s.material), i && !i(s) && (o = void 0, r = void 0), (s instanceof H || s instanceof mo) && r && typeof r == "object" && (r instanceof pt || r instanceof we || // material instanceof MeshPhysicalNodeMaterial ||
|
|
24272
24295
|
r.isMeshPhysicalNodeMaterial || r instanceof be && r.type === "MeshLineMaterial")) {
|
|
24273
24296
|
const l = Gh(s), c = s instanceof mo ? s : null;
|
|
24274
|
-
n = new
|
|
24297
|
+
n = new lt(s.uuid, l, a, o, r, void 0, c, s.animations);
|
|
24275
24298
|
} else if (s instanceof ce || s instanceof au) {
|
|
24276
24299
|
const l = Gh(s);
|
|
24277
|
-
n = new
|
|
24300
|
+
n = new lt(s.uuid, l, a, void 0, void 0, s);
|
|
24278
24301
|
} else {
|
|
24279
24302
|
const l = Gh(s);
|
|
24280
|
-
n = new
|
|
24303
|
+
n = new lt(s.uuid, l, a, void 0, void 0, void 0, void 0, s.animations);
|
|
24281
24304
|
}
|
|
24282
24305
|
if (n) {
|
|
24283
24306
|
if (n.displayName = s.userData?.name || s.name, n.visibility = s.visible ? void 0 : "invisible", e && e.add(n), e = n, t.extensions)
|
|
24284
24307
|
for (const l of t.extensions)
|
|
24285
24308
|
l.onExportObject && l.onExportObject.call(l, s, n, t);
|
|
24286
24309
|
} else {
|
|
24287
|
-
const l = Gh(s), c = new
|
|
24310
|
+
const l = Gh(s), c = new lt(s.uuid, l, { position: s.position, quaternion: s.quaternion, scale: s.scale });
|
|
24288
24311
|
e && e.add(c), e = c;
|
|
24289
24312
|
}
|
|
24290
24313
|
for (const l of s.children)
|
|
@@ -24982,7 +25005,7 @@ class wr {
|
|
|
24982
25005
|
}
|
|
24983
25006
|
}
|
|
24984
25007
|
function Sb(s, e = { direct: !0, indirect: !0 }) {
|
|
24985
|
-
const t =
|
|
25008
|
+
const t = lt.createEmpty();
|
|
24986
25009
|
t.name = "InputTarget_" + t.name, t.displayName = void 0, t.type = "RealityKitComponent", t.onSerialize = (i) => {
|
|
24987
25010
|
i.appendLine("bool allowsDirectInput = " + (e.direct ? 1 : 0)), i.appendLine("bool allowsIndirectInput = " + (e.indirect ? 1 : 0)), i.appendLine('uniform token info:id = "RealityKit.InputTarget"');
|
|
24988
25011
|
}, s.add(t);
|
|
@@ -25001,9 +25024,9 @@ class Jt {
|
|
|
25001
25024
|
const i = new wr(e);
|
|
25002
25025
|
if (Array.isArray(e) && e.length > 1)
|
|
25003
25026
|
for (const n of e)
|
|
25004
|
-
n instanceof
|
|
25027
|
+
n instanceof lt && Sb(n, t);
|
|
25005
25028
|
else
|
|
25006
|
-
e instanceof
|
|
25029
|
+
e instanceof lt && Sb(e, t);
|
|
25007
25030
|
return i.tokenId = "TapGesture", i;
|
|
25008
25031
|
}
|
|
25009
25032
|
static isTapTrigger(e) {
|
|
@@ -25206,7 +25229,7 @@ class Aw extends CE {
|
|
|
25206
25229
|
onApply(e) {
|
|
25207
25230
|
const t = this.model;
|
|
25208
25231
|
if (!t) return;
|
|
25209
|
-
t.parent?.isDynamic ||
|
|
25232
|
+
t.parent?.isDynamic || lt.createEmptyParent(t);
|
|
25210
25233
|
const i = t.clone();
|
|
25211
25234
|
this.matrix && i.setMatrix(this.matrix), this.material && (i.material = this.material), this.geometry && (i.geometry = this.geometry), t.parent?.add(i);
|
|
25212
25235
|
}
|
|
@@ -25891,7 +25914,7 @@ class ol extends E {
|
|
|
25891
25914
|
this.context.input.unsetCursor("pointer");
|
|
25892
25915
|
}
|
|
25893
25916
|
onPointerClick(e) {
|
|
25894
|
-
const t = this.object?.getComponentsInChildren(
|
|
25917
|
+
const t = this.object?.getComponentsInChildren(Je);
|
|
25895
25918
|
if (t)
|
|
25896
25919
|
for (const i of t)
|
|
25897
25920
|
i.resetVelocities(), i.resetForcesAndTorques();
|
|
@@ -26028,7 +26051,7 @@ const zu = class qt extends E {
|
|
|
26028
26051
|
const e = [];
|
|
26029
26052
|
for (const t of this.targetModels) {
|
|
26030
26053
|
const i = t.clone();
|
|
26031
|
-
i.name += "_Variant_" + qt.variantSwitchIndex++ + "_" + qt.getMaterialName(this.variantMaterial), i.displayName = i.displayName + ": Variant with material " + this.variantMaterial.name, i.material = this.variantMaterial, i.geometry = t.geometry, i.transform = t.transform, (!t.parent || !t.parent.isEmpty()) &&
|
|
26054
|
+
i.name += "_Variant_" + qt.variantSwitchIndex++ + "_" + qt.getMaterialName(this.variantMaterial), i.displayName = i.displayName + ": Variant with material " + this.variantMaterial.name, i.material = this.variantMaterial, i.geometry = t.geometry, i.transform = t.transform, (!t.parent || !t.parent.isEmpty()) && lt.createEmptyParent(t), t.parent && t.parent.add(i), e.push(i);
|
|
26032
26055
|
}
|
|
26033
26056
|
return e;
|
|
26034
26057
|
}
|
|
@@ -26712,13 +26735,13 @@ _t([
|
|
|
26712
26735
|
u(Fe)
|
|
26713
26736
|
], To.prototype, "texture", 2);
|
|
26714
26737
|
_t([
|
|
26715
|
-
|
|
26738
|
+
et()
|
|
26716
26739
|
], To.prototype, "triangles", 2);
|
|
26717
26740
|
_t([
|
|
26718
|
-
|
|
26741
|
+
et()
|
|
26719
26742
|
], To.prototype, "uv", 2);
|
|
26720
26743
|
_t([
|
|
26721
|
-
|
|
26744
|
+
et()
|
|
26722
26745
|
], To.prototype, "vertices", 2);
|
|
26723
26746
|
const fp = /* @__PURE__ */ Symbol("spriteOwner");
|
|
26724
26747
|
class Bc {
|
|
@@ -28230,7 +28253,7 @@ var QE = Object.defineProperty, bt = (s, e, t, i) => {
|
|
|
28230
28253
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
28231
28254
|
return n && QE(e, t, n), n;
|
|
28232
28255
|
};
|
|
28233
|
-
const Ll = x("debugwebxr"), YE = x("debugusdz"),
|
|
28256
|
+
const Ll = x("debugwebxr"), YE = x("debugusdz"), dt = class ga extends E {
|
|
28234
28257
|
createVRButton = !0;
|
|
28235
28258
|
createARButton = !0;
|
|
28236
28259
|
createSendToQuestButton = !0;
|
|
@@ -28502,59 +28525,59 @@ const Ll = x("debugwebxr"), YE = x("debugusdz"), ht = class ga extends E {
|
|
|
28502
28525
|
};
|
|
28503
28526
|
bt([
|
|
28504
28527
|
u()
|
|
28505
|
-
],
|
|
28528
|
+
], dt.prototype, "createVRButton");
|
|
28506
28529
|
bt([
|
|
28507
28530
|
u()
|
|
28508
|
-
],
|
|
28531
|
+
], dt.prototype, "createARButton");
|
|
28509
28532
|
bt([
|
|
28510
28533
|
u()
|
|
28511
|
-
],
|
|
28534
|
+
], dt.prototype, "createSendToQuestButton");
|
|
28512
28535
|
bt([
|
|
28513
28536
|
u()
|
|
28514
|
-
],
|
|
28537
|
+
], dt.prototype, "createQRCode");
|
|
28515
28538
|
bt([
|
|
28516
28539
|
u()
|
|
28517
|
-
],
|
|
28540
|
+
], dt.prototype, "useDefaultControls");
|
|
28518
28541
|
bt([
|
|
28519
28542
|
u()
|
|
28520
|
-
],
|
|
28543
|
+
], dt.prototype, "showControllerModels");
|
|
28521
28544
|
bt([
|
|
28522
28545
|
u()
|
|
28523
|
-
],
|
|
28546
|
+
], dt.prototype, "showHandModels");
|
|
28524
28547
|
bt([
|
|
28525
28548
|
u()
|
|
28526
|
-
],
|
|
28549
|
+
], dt.prototype, "usePlacementReticle");
|
|
28527
28550
|
bt([
|
|
28528
28551
|
u(ne)
|
|
28529
|
-
],
|
|
28552
|
+
], dt.prototype, "customARPlacementReticle");
|
|
28530
28553
|
bt([
|
|
28531
28554
|
u()
|
|
28532
|
-
],
|
|
28555
|
+
], dt.prototype, "usePlacementAdjustment");
|
|
28533
28556
|
bt([
|
|
28534
28557
|
u()
|
|
28535
|
-
],
|
|
28558
|
+
], dt.prototype, "arScale");
|
|
28536
28559
|
bt([
|
|
28537
28560
|
u()
|
|
28538
|
-
],
|
|
28561
|
+
], dt.prototype, "useXRAnchor");
|
|
28539
28562
|
bt([
|
|
28540
28563
|
u()
|
|
28541
|
-
],
|
|
28564
|
+
], dt.prototype, "autoPlace");
|
|
28542
28565
|
bt([
|
|
28543
28566
|
u()
|
|
28544
|
-
],
|
|
28567
|
+
], dt.prototype, "autoCenter");
|
|
28545
28568
|
bt([
|
|
28546
28569
|
u()
|
|
28547
|
-
],
|
|
28570
|
+
], dt.prototype, "useQuicklookExport");
|
|
28548
28571
|
bt([
|
|
28549
28572
|
u()
|
|
28550
|
-
],
|
|
28573
|
+
], dt.prototype, "useDepthSensing");
|
|
28551
28574
|
bt([
|
|
28552
28575
|
u()
|
|
28553
|
-
],
|
|
28576
|
+
], dt.prototype, "useSpatialGrab");
|
|
28554
28577
|
bt([
|
|
28555
28578
|
u(ne)
|
|
28556
|
-
],
|
|
28557
|
-
let Zg =
|
|
28579
|
+
], dt.prototype, "defaultAvatar");
|
|
28580
|
+
let Zg = dt;
|
|
28558
28581
|
const Xh = x("debugusdzbehaviours");
|
|
28559
28582
|
class zw {
|
|
28560
28583
|
get extensionName() {
|
|
@@ -28723,10 +28746,10 @@ class Nw {
|
|
|
28723
28746
|
return "Physics";
|
|
28724
28747
|
}
|
|
28725
28748
|
onExportObject(e, t, i) {
|
|
28726
|
-
const n = C.getComponents(e,
|
|
28749
|
+
const n = C.getComponents(e, Je).filter((l) => l.enabled), o = C.getComponents(e, Pn).filter((l) => l.enabled && !l.isTrigger);
|
|
28727
28750
|
let r = n.length > 0 ? n[0] : null;
|
|
28728
28751
|
const a = o.length > 0 ? o[0] : null;
|
|
28729
|
-
a && !r && (r = new
|
|
28752
|
+
a && !r && (r = new Je(), r.isKinematic = !0), r && t.addEventListener("serialize", (l, c) => {
|
|
28730
28753
|
if (r) {
|
|
28731
28754
|
if (l.appendLine(), l.beginBlock('def RealityKitComponent "RigidBody"', "{", !0), r.useGravity || l.appendLine("bool gravityEnabled = 0"), l.appendLine('uniform token info:id = "RealityKit.RigidBody"'), r.isKinematic && l.appendLine('token motionType = "Kinematic"'), l.beginBlock('def RealityKitStruct "massFrame"', "{", !0), l.appendLine(`float m_mass = ${r.mass}`), l.beginBlock('def RealityKitStruct "m_pose"', "{", !0), l.appendLine(`float3 position = (${r.centerOfMass.x}, ${r.centerOfMass.y}, ${r.centerOfMass.z})`), l.closeBlock("}"), l.closeBlock("}"), o.length > 0) {
|
|
28732
28755
|
const h = o[0];
|
|
@@ -29227,7 +29250,7 @@ var oT = Object.defineProperty, rT = Object.getOwnPropertyDescriptor, $s = (s, e
|
|
|
29227
29250
|
return i && n && oT(e, t, n), n;
|
|
29228
29251
|
};
|
|
29229
29252
|
const Jo = x("debugtext");
|
|
29230
|
-
var
|
|
29253
|
+
var ot = /* @__PURE__ */ ((s) => (s[s.UpperLeft = 0] = "UpperLeft", s[s.UpperCenter = 1] = "UpperCenter", s[s.UpperRight = 2] = "UpperRight", s[s.MiddleLeft = 3] = "MiddleLeft", s[s.MiddleCenter = 4] = "MiddleCenter", s[s.MiddleRight = 5] = "MiddleRight", s[s.LowerLeft = 6] = "LowerLeft", s[s.LowerCenter = 7] = "LowerCenter", s[s.LowerRight = 8] = "LowerRight", s))(ot || {}), Hw = /* @__PURE__ */ ((s) => (s[s.Normal = 0] = "Normal", s[s.Bold = 1] = "Bold", s[s.Italic = 2] = "Italic", s[s.BoldAndItalic = 3] = "BoldAndItalic", s))(Hw || {});
|
|
29231
29254
|
class ii extends qu {
|
|
29232
29255
|
alignment = 0;
|
|
29233
29256
|
verticalOverflow = 0;
|
|
@@ -29642,42 +29665,42 @@ class ey {
|
|
|
29642
29665
|
}
|
|
29643
29666
|
setTextAlignment(e, t) {
|
|
29644
29667
|
switch (t) {
|
|
29645
|
-
case
|
|
29646
|
-
case
|
|
29647
|
-
case
|
|
29668
|
+
case ot.LowerLeft:
|
|
29669
|
+
case ot.MiddleLeft:
|
|
29670
|
+
case ot.UpperLeft:
|
|
29648
29671
|
e.horizontalAlignment = "left";
|
|
29649
29672
|
break;
|
|
29650
|
-
case
|
|
29651
|
-
case
|
|
29652
|
-
case
|
|
29673
|
+
case ot.LowerCenter:
|
|
29674
|
+
case ot.MiddleCenter:
|
|
29675
|
+
case ot.UpperCenter:
|
|
29653
29676
|
e.horizontalAlignment = "center";
|
|
29654
29677
|
break;
|
|
29655
|
-
case
|
|
29656
|
-
case
|
|
29657
|
-
case
|
|
29678
|
+
case ot.LowerRight:
|
|
29679
|
+
case ot.MiddleRight:
|
|
29680
|
+
case ot.UpperRight:
|
|
29658
29681
|
e.horizontalAlignment = "right";
|
|
29659
29682
|
break;
|
|
29660
29683
|
}
|
|
29661
29684
|
switch (t) {
|
|
29662
|
-
case
|
|
29663
|
-
case
|
|
29664
|
-
case
|
|
29685
|
+
case ot.LowerLeft:
|
|
29686
|
+
case ot.LowerCenter:
|
|
29687
|
+
case ot.LowerRight:
|
|
29665
29688
|
e.verticalAlignment = "bottom";
|
|
29666
29689
|
break;
|
|
29667
|
-
case
|
|
29668
|
-
case
|
|
29669
|
-
case
|
|
29690
|
+
case ot.MiddleLeft:
|
|
29691
|
+
case ot.MiddleCenter:
|
|
29692
|
+
case ot.MiddleRight:
|
|
29670
29693
|
e.verticalAlignment = "middle";
|
|
29671
29694
|
break;
|
|
29672
|
-
case
|
|
29673
|
-
case
|
|
29674
|
-
case
|
|
29695
|
+
case ot.UpperLeft:
|
|
29696
|
+
case ot.UpperCenter:
|
|
29697
|
+
case ot.UpperRight:
|
|
29675
29698
|
e.verticalAlignment = "top";
|
|
29676
29699
|
break;
|
|
29677
29700
|
}
|
|
29678
29701
|
}
|
|
29679
29702
|
}
|
|
29680
|
-
var hT = Object.defineProperty,
|
|
29703
|
+
var hT = Object.defineProperty, tt = (s, e, t, i) => {
|
|
29681
29704
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
29682
29705
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
29683
29706
|
return n && hT(e, t, n), n;
|
|
@@ -29695,16 +29718,16 @@ class ll {
|
|
|
29695
29718
|
return this.left + this.right;
|
|
29696
29719
|
}
|
|
29697
29720
|
}
|
|
29698
|
-
|
|
29721
|
+
tt([
|
|
29699
29722
|
u()
|
|
29700
29723
|
], ll.prototype, "left");
|
|
29701
|
-
|
|
29724
|
+
tt([
|
|
29702
29725
|
u()
|
|
29703
29726
|
], ll.prototype, "right");
|
|
29704
|
-
|
|
29727
|
+
tt([
|
|
29705
29728
|
u()
|
|
29706
29729
|
], ll.prototype, "top");
|
|
29707
|
-
|
|
29730
|
+
tt([
|
|
29708
29731
|
u()
|
|
29709
29732
|
], ll.prototype, "bottom");
|
|
29710
29733
|
class Ai extends E {
|
|
@@ -29755,34 +29778,34 @@ class Ai extends E {
|
|
|
29755
29778
|
return this.spacing;
|
|
29756
29779
|
}
|
|
29757
29780
|
}
|
|
29758
|
-
|
|
29781
|
+
tt([
|
|
29759
29782
|
u()
|
|
29760
29783
|
], Ai.prototype, "childAlignment");
|
|
29761
|
-
|
|
29784
|
+
tt([
|
|
29762
29785
|
u()
|
|
29763
29786
|
], Ai.prototype, "reverseArrangement");
|
|
29764
|
-
|
|
29787
|
+
tt([
|
|
29765
29788
|
u()
|
|
29766
29789
|
], Ai.prototype, "spacing");
|
|
29767
|
-
|
|
29790
|
+
tt([
|
|
29768
29791
|
u(ll)
|
|
29769
29792
|
], Ai.prototype, "padding");
|
|
29770
|
-
|
|
29793
|
+
tt([
|
|
29771
29794
|
u()
|
|
29772
29795
|
], Ai.prototype, "minWidth");
|
|
29773
|
-
|
|
29796
|
+
tt([
|
|
29774
29797
|
u()
|
|
29775
29798
|
], Ai.prototype, "minHeight");
|
|
29776
|
-
|
|
29799
|
+
tt([
|
|
29777
29800
|
u()
|
|
29778
29801
|
], Ai.prototype, "flexibleHeight");
|
|
29779
|
-
|
|
29802
|
+
tt([
|
|
29780
29803
|
u()
|
|
29781
29804
|
], Ai.prototype, "flexibleWidth");
|
|
29782
|
-
|
|
29805
|
+
tt([
|
|
29783
29806
|
u()
|
|
29784
29807
|
], Ai.prototype, "preferredHeight");
|
|
29785
|
-
|
|
29808
|
+
tt([
|
|
29786
29809
|
u()
|
|
29787
29810
|
], Ai.prototype, "preferredWidth");
|
|
29788
29811
|
class Io extends Ai {
|
|
@@ -29834,22 +29857,22 @@ class Io extends Ai {
|
|
|
29834
29857
|
}
|
|
29835
29858
|
}
|
|
29836
29859
|
}
|
|
29837
|
-
|
|
29860
|
+
tt([
|
|
29838
29861
|
u()
|
|
29839
29862
|
], Io.prototype, "childControlHeight");
|
|
29840
|
-
|
|
29863
|
+
tt([
|
|
29841
29864
|
u()
|
|
29842
29865
|
], Io.prototype, "childControlWidth");
|
|
29843
|
-
|
|
29866
|
+
tt([
|
|
29844
29867
|
u()
|
|
29845
29868
|
], Io.prototype, "childForceExpandHeight");
|
|
29846
|
-
|
|
29869
|
+
tt([
|
|
29847
29870
|
u()
|
|
29848
29871
|
], Io.prototype, "childForceExpandWidth");
|
|
29849
|
-
|
|
29872
|
+
tt([
|
|
29850
29873
|
u()
|
|
29851
29874
|
], Io.prototype, "childScaleHeight");
|
|
29852
|
-
|
|
29875
|
+
tt([
|
|
29853
29876
|
u()
|
|
29854
29877
|
], Io.prototype, "childScaleWidth");
|
|
29855
29878
|
class qw extends Io {
|
|
@@ -30172,14 +30195,14 @@ class Zw {
|
|
|
30172
30195
|
});
|
|
30173
30196
|
}
|
|
30174
30197
|
}), r.width, r.height;
|
|
30175
|
-
const c =
|
|
30198
|
+
const c = lt.createEmpty(), h = r.shadowComponent;
|
|
30176
30199
|
if (t.add(c), h) {
|
|
30177
30200
|
const d = h.matrix;
|
|
30178
30201
|
c.setMatrix(d);
|
|
30179
30202
|
const f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
|
|
30180
30203
|
f.set(h, c), p.set(h, a ? a.alpha : 1), h.traverse((m) => {
|
|
30181
30204
|
if (m === h) return;
|
|
30182
|
-
const _ =
|
|
30205
|
+
const _ = lt.createEmpty();
|
|
30183
30206
|
_.setMatrix(m.matrix);
|
|
30184
30207
|
const g = m.parent, w = !!g && typeof g.textContent == "string" && g.textContent.length > 0;
|
|
30185
30208
|
let b = p.get(g) || 1;
|
|
@@ -30464,7 +30487,7 @@ const mi = class or extends E {
|
|
|
30464
30487
|
const a = new dE(), l = new Gg(this.quickLookCompatible);
|
|
30465
30488
|
let c;
|
|
30466
30489
|
const h = [];
|
|
30467
|
-
this.interactive && (h.push(new zw()), h.push(new sl()), globalThis.NEEDLE_USE_RAPIER && C.getComponentsInChildren(e,
|
|
30490
|
+
this.interactive && (h.push(new zw()), h.push(new sl()), globalThis.NEEDLE_USE_RAPIER && C.getComponentsInChildren(e, Je).length > 0 && (this.physics ? (c = new Nw(), h.push(c)) : L() && console.warn("USDZExporter: Physics export is disabled, but there are active Rigidbody components in the scene. They will not be exported.")), h.push(new ey()), h.push(new Zw()));
|
|
30468
30491
|
const d = [l, ...h, ...this.extensions], f = { self: this, exporter: a, extensions: d, object: e };
|
|
30469
30492
|
he.report("export-usdz", "Invoking before-export"), this.dispatchEvent(new CustomEvent("before-export", { detail: f })), this.applyWebARSessionRoot(), this._previousTimeScale = this.context.time.timeScale, this.context.time.timeScale = 0, he.report("export-usdz", "auto export animations and audio sources");
|
|
30470
30493
|
const p = new Array();
|
|
@@ -30478,7 +30501,7 @@ const mi = class or extends E {
|
|
|
30478
30501
|
if (L() && l && c) {
|
|
30479
30502
|
const O = l.animatedRoots;
|
|
30480
30503
|
for (const R of O) {
|
|
30481
|
-
const I = C.getComponentsInChildren(R,
|
|
30504
|
+
const I = C.getComponentsInChildren(R, Je).filter((B) => B.enabled), j = C.getComponents(R, Pn).filter((B) => B.enabled && !B.isTrigger);
|
|
30482
30505
|
(I.length > 0 || j.length > 0) && console.error("An animated object has physics components in its child hierarchy. This can lead to undefined behaviour due to a bug in Apple's QuickLook (FB15925487). Remove the physics components from child objects or verify that you get the expected results.", R);
|
|
30483
30506
|
}
|
|
30484
30507
|
}
|
|
@@ -30551,7 +30574,7 @@ const mi = class or extends E {
|
|
|
30551
30574
|
return this.customBranding && Object.assign(e, this.customBranding), ks() || (console.log("Custom Quicklook banner text requires pro license: https://needle.tools/pricing"), e.callToAction = "Close", e.checkoutTitle = "🌵 Made with Needle", e.checkoutSubtitle = "_"), (e.callToAction?.length || e.checkoutTitle?.length || e.checkoutSubtitle?.length) && (e.callToAction?.length || (e.callToAction = "\0"), e.checkoutTitle?.length || (e.checkoutTitle = "\0"), e.checkoutSubtitle?.length || (e.checkoutSubtitle = "\0")), this.dispatchEvent(new CustomEvent("quicklook-overlay", { detail: e })), e;
|
|
30552
30575
|
}
|
|
30553
30576
|
static invertForwardMatrix = new J().makeRotationY(Math.PI);
|
|
30554
|
-
static invertForwardQuaternion = new V().setFromEuler(new
|
|
30577
|
+
static invertForwardQuaternion = new V().setFromEuler(new ct(0, Math.PI, 0));
|
|
30555
30578
|
_rootSessionRootWasAppliedTo = null;
|
|
30556
30579
|
_rootPositionBeforeExport = new y();
|
|
30557
30580
|
_rootRotationBeforeExport = new V();
|
|
@@ -30748,14 +30771,14 @@ class ry extends E {
|
|
|
30748
30771
|
}
|
|
30749
30772
|
_rigidBody = null;
|
|
30750
30773
|
onEnable() {
|
|
30751
|
-
this._rigidBody || (this._rigidBody = this.gameObject.getComponent(
|
|
30774
|
+
this._rigidBody || (this._rigidBody = this.gameObject.getComponent(Je)), this.rigidBody && this.connectedBody && this.startCoroutine(this.create());
|
|
30752
30775
|
}
|
|
30753
30776
|
*create() {
|
|
30754
30777
|
yield, this.rigidBody && this.connectedBody && this.activeAndEnabled && this.createJoint(this.rigidBody, this.connectedBody);
|
|
30755
30778
|
}
|
|
30756
30779
|
}
|
|
30757
30780
|
oy([
|
|
30758
|
-
u(
|
|
30781
|
+
u(Je)
|
|
30759
30782
|
], ry.prototype, "connectedBody");
|
|
30760
30783
|
class Jw extends ry {
|
|
30761
30784
|
createJoint(e, t) {
|
|
@@ -31296,7 +31319,7 @@ class dl extends E {
|
|
|
31296
31319
|
a.projectPoint(e, c), e.copy(c);
|
|
31297
31320
|
}
|
|
31298
31321
|
this.affectPosition && Et(this.gameObject, e);
|
|
31299
|
-
const n = new
|
|
31322
|
+
const n = new ct(this.rotationOffset.x, this.rotationOffset.y, this.rotationOffset.z), o = new V().setFromEuler(n);
|
|
31300
31323
|
this.affectRotation && Yn(this.gameObject, t.multiply(o));
|
|
31301
31324
|
const r = new y();
|
|
31302
31325
|
this.from.getWorldDirection(r).multiplyScalar(50), this.levelLookDirection && (r.y = 0), this.alignLookDirection && this.gameObject.lookAt(r);
|
|
@@ -31845,7 +31868,7 @@ S([
|
|
|
31845
31868
|
S([
|
|
31846
31869
|
u(Y)
|
|
31847
31870
|
], pl.prototype, "z");
|
|
31848
|
-
const
|
|
31871
|
+
const it = class sc {
|
|
31849
31872
|
// Emittershape start
|
|
31850
31873
|
get type() {
|
|
31851
31874
|
return Rm[this.shapeType];
|
|
@@ -31870,7 +31893,7 @@ const tt = class sc {
|
|
|
31870
31893
|
boxThickness;
|
|
31871
31894
|
position;
|
|
31872
31895
|
rotation;
|
|
31873
|
-
_rotation = new
|
|
31896
|
+
_rotation = new ct();
|
|
31874
31897
|
scale;
|
|
31875
31898
|
radius;
|
|
31876
31899
|
radiusThickness;
|
|
@@ -32062,62 +32085,62 @@ const tt = class sc {
|
|
|
32062
32085
|
};
|
|
32063
32086
|
S([
|
|
32064
32087
|
u()
|
|
32065
|
-
],
|
|
32088
|
+
], it.prototype, "shapeType");
|
|
32066
32089
|
S([
|
|
32067
32090
|
u()
|
|
32068
|
-
],
|
|
32091
|
+
], it.prototype, "enabled");
|
|
32069
32092
|
S([
|
|
32070
32093
|
u()
|
|
32071
|
-
],
|
|
32094
|
+
], it.prototype, "alignToDirection");
|
|
32072
32095
|
S([
|
|
32073
32096
|
u()
|
|
32074
|
-
],
|
|
32097
|
+
], it.prototype, "angle");
|
|
32075
32098
|
S([
|
|
32076
32099
|
u()
|
|
32077
|
-
],
|
|
32100
|
+
], it.prototype, "arc");
|
|
32078
32101
|
S([
|
|
32079
32102
|
u()
|
|
32080
|
-
],
|
|
32103
|
+
], it.prototype, "arcSpread");
|
|
32081
32104
|
S([
|
|
32082
32105
|
u()
|
|
32083
|
-
],
|
|
32106
|
+
], it.prototype, "arcSpeedMultiplier");
|
|
32084
32107
|
S([
|
|
32085
32108
|
u()
|
|
32086
|
-
],
|
|
32109
|
+
], it.prototype, "arcMode");
|
|
32087
32110
|
S([
|
|
32088
32111
|
u(y)
|
|
32089
|
-
],
|
|
32112
|
+
], it.prototype, "boxThickness");
|
|
32090
32113
|
S([
|
|
32091
32114
|
u(y)
|
|
32092
|
-
],
|
|
32115
|
+
], it.prototype, "position");
|
|
32093
32116
|
S([
|
|
32094
32117
|
u(y)
|
|
32095
|
-
],
|
|
32118
|
+
], it.prototype, "rotation");
|
|
32096
32119
|
S([
|
|
32097
32120
|
u(y)
|
|
32098
|
-
],
|
|
32121
|
+
], it.prototype, "scale");
|
|
32099
32122
|
S([
|
|
32100
32123
|
u()
|
|
32101
|
-
],
|
|
32124
|
+
], it.prototype, "radius");
|
|
32102
32125
|
S([
|
|
32103
32126
|
u()
|
|
32104
|
-
],
|
|
32127
|
+
], it.prototype, "radiusThickness");
|
|
32105
32128
|
S([
|
|
32106
32129
|
u()
|
|
32107
|
-
],
|
|
32130
|
+
], it.prototype, "sphericalDirectionAmount");
|
|
32108
32131
|
S([
|
|
32109
32132
|
u()
|
|
32110
|
-
],
|
|
32133
|
+
], it.prototype, "randomDirectionAmount");
|
|
32111
32134
|
S([
|
|
32112
32135
|
u()
|
|
32113
|
-
],
|
|
32136
|
+
], it.prototype, "randomPositionAmount");
|
|
32114
32137
|
S([
|
|
32115
32138
|
u()
|
|
32116
|
-
],
|
|
32139
|
+
], it.prototype, "meshShapeType");
|
|
32117
32140
|
S([
|
|
32118
32141
|
u(Bu)
|
|
32119
|
-
],
|
|
32120
|
-
let ix =
|
|
32142
|
+
], it.prototype, "meshRenderer");
|
|
32143
|
+
let ix = it;
|
|
32121
32144
|
class xe {
|
|
32122
32145
|
damping;
|
|
32123
32146
|
enabled;
|
|
@@ -33679,7 +33702,7 @@ uy([
|
|
|
33679
33702
|
u()
|
|
33680
33703
|
], hh.prototype, "radius");
|
|
33681
33704
|
uy([
|
|
33682
|
-
u(
|
|
33705
|
+
u(Je)
|
|
33683
33706
|
], hh.prototype, "targets");
|
|
33684
33707
|
class zc extends E {
|
|
33685
33708
|
_didAssignPlayerColor = !1;
|
|
@@ -33868,7 +33891,7 @@ var oA = Object.defineProperty, rA = (s, e, t, i) => {
|
|
|
33868
33891
|
return n && oA(e, t, n), n;
|
|
33869
33892
|
};
|
|
33870
33893
|
const Cp = x("debugpost");
|
|
33871
|
-
class
|
|
33894
|
+
class ht extends E {
|
|
33872
33895
|
get isPostProcessingEffect() {
|
|
33873
33896
|
return !0;
|
|
33874
33897
|
}
|
|
@@ -33946,7 +33969,7 @@ class ct extends E {
|
|
|
33946
33969
|
}
|
|
33947
33970
|
rA([
|
|
33948
33971
|
u()
|
|
33949
|
-
],
|
|
33972
|
+
], ht.prototype, "active");
|
|
33950
33973
|
var aA = Object.defineProperty, lA = (s, e, t, i) => {
|
|
33951
33974
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
33952
33975
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
@@ -33957,7 +33980,7 @@ function Mn(s, e) {
|
|
|
33957
33980
|
jm[s] = e;
|
|
33958
33981
|
}
|
|
33959
33982
|
function hA(s) {
|
|
33960
|
-
return s.__type in jm ? jm[s.__type] : (cA && s.__type && console.warn("Unknown postprocessing type", s.__type, s),
|
|
33983
|
+
return s.__type in jm ? jm[s.__type] : (cA && s.__type && console.warn("Unknown postprocessing type", s.__type, s), ht);
|
|
33961
33984
|
}
|
|
33962
33985
|
class fy {
|
|
33963
33986
|
components = [];
|
|
@@ -33979,7 +34002,7 @@ class fy {
|
|
|
33979
34002
|
}
|
|
33980
34003
|
}
|
|
33981
34004
|
lA([
|
|
33982
|
-
|
|
34005
|
+
et([(s) => hA(s), ht])
|
|
33983
34006
|
], fy.prototype, "components");
|
|
33984
34007
|
var dA = Object.defineProperty, uA = (s, e, t, i) => {
|
|
33985
34008
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
@@ -33987,7 +34010,7 @@ var dA = Object.defineProperty, uA = (s, e, t, i) => {
|
|
|
33987
34010
|
return n && dA(e, t, n), n;
|
|
33988
34011
|
};
|
|
33989
34012
|
const fA = x("debugpost");
|
|
33990
|
-
class ef extends
|
|
34013
|
+
class ef extends ht {
|
|
33991
34014
|
get typeName() {
|
|
33992
34015
|
return "Antialiasing";
|
|
33993
34016
|
}
|
|
@@ -34014,7 +34037,7 @@ var pA = Object.defineProperty, py = (s, e, t, i) => {
|
|
|
34014
34037
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34015
34038
|
return n && pA(e, t, n), n;
|
|
34016
34039
|
};
|
|
34017
|
-
const tf = class cx extends
|
|
34040
|
+
const tf = class cx extends ht {
|
|
34018
34041
|
/** Whether to use selective bloom by default */
|
|
34019
34042
|
static useSelectiveBloom = !1;
|
|
34020
34043
|
get typeName() {
|
|
@@ -34079,7 +34102,7 @@ var mA = Object.defineProperty, gA = (s, e, t, i) => {
|
|
|
34079
34102
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34080
34103
|
return n && mA(e, t, n), n;
|
|
34081
34104
|
};
|
|
34082
|
-
class nf extends
|
|
34105
|
+
class nf extends ht {
|
|
34083
34106
|
get typeName() {
|
|
34084
34107
|
return "ChromaticAberration";
|
|
34085
34108
|
}
|
|
@@ -34151,7 +34174,7 @@ var _A = Object.defineProperty, hx = (s, e, t, i) => {
|
|
|
34151
34174
|
return n && _A(e, t, n), n;
|
|
34152
34175
|
};
|
|
34153
34176
|
const Op = x("debugpost");
|
|
34154
|
-
class Ar extends
|
|
34177
|
+
class Ar extends ht {
|
|
34155
34178
|
get typeName() {
|
|
34156
34179
|
return "ToneMapping";
|
|
34157
34180
|
}
|
|
@@ -34208,7 +34231,7 @@ var bA = Object.defineProperty, sf = (s, e, t, i) => {
|
|
|
34208
34231
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34209
34232
|
return n && bA(e, t, n), n;
|
|
34210
34233
|
};
|
|
34211
|
-
class Gr extends
|
|
34234
|
+
class Gr extends ht {
|
|
34212
34235
|
get typeName() {
|
|
34213
34236
|
return "ColorAdjustments";
|
|
34214
34237
|
}
|
|
@@ -34258,7 +34281,7 @@ var vA = Object.defineProperty, qr = (s, e, t, i) => {
|
|
|
34258
34281
|
return n && vA(e, t, n), n;
|
|
34259
34282
|
};
|
|
34260
34283
|
const wA = x("debugpost");
|
|
34261
|
-
class os extends
|
|
34284
|
+
class os extends ht {
|
|
34262
34285
|
get typeName() {
|
|
34263
34286
|
return "DepthOfField";
|
|
34264
34287
|
}
|
|
@@ -34320,7 +34343,7 @@ qr([
|
|
|
34320
34343
|
u($)
|
|
34321
34344
|
], os.prototype, "bokehScale");
|
|
34322
34345
|
Mn("DepthOfField", os);
|
|
34323
|
-
class eu extends
|
|
34346
|
+
class eu extends ht {
|
|
34324
34347
|
effect;
|
|
34325
34348
|
constructor(e) {
|
|
34326
34349
|
super(), this.effect = e;
|
|
@@ -34337,7 +34360,7 @@ var xA = Object.defineProperty, SA = (s, e, t, i) => {
|
|
|
34337
34360
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34338
34361
|
return n && xA(e, t, n), n;
|
|
34339
34362
|
};
|
|
34340
|
-
class of extends
|
|
34363
|
+
class of extends ht {
|
|
34341
34364
|
get typeName() {
|
|
34342
34365
|
return "PixelationEffect";
|
|
34343
34366
|
}
|
|
@@ -34358,7 +34381,7 @@ var CA = Object.defineProperty, dh = (s, e, t, i) => {
|
|
|
34358
34381
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34359
34382
|
return n && CA(e, t, n), n;
|
|
34360
34383
|
};
|
|
34361
|
-
class Bo extends
|
|
34384
|
+
class Bo extends ht {
|
|
34362
34385
|
get typeName() {
|
|
34363
34386
|
return "ScreenSpaceAmbientOcclusion";
|
|
34364
34387
|
}
|
|
@@ -34428,7 +34451,7 @@ var PA = Object.defineProperty, Xr = (s, e, t, i) => {
|
|
|
34428
34451
|
};
|
|
34429
34452
|
const OA = x("debugN8AO");
|
|
34430
34453
|
var Bm = /* @__PURE__ */ ((s) => (s[s.Performance = 0] = "Performance", s[s.Low = 1] = "Low", s[s.Medium = 2] = "Medium", s[s.High = 3] = "High", s[s.Ultra = 4] = "Ultra", s))(Bm || {});
|
|
34431
|
-
class rs extends
|
|
34454
|
+
class rs extends ht {
|
|
34432
34455
|
get typeName() {
|
|
34433
34456
|
return "ScreenSpaceAmbientOcclusionN8";
|
|
34434
34457
|
}
|
|
@@ -34502,7 +34525,7 @@ var kA = Object.defineProperty, MA = Object.getOwnPropertyDescriptor, dx = (s, e
|
|
|
34502
34525
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34503
34526
|
return n && kA(e, t, n), n;
|
|
34504
34527
|
};
|
|
34505
|
-
class rf extends
|
|
34528
|
+
class rf extends ht {
|
|
34506
34529
|
get typeName() {
|
|
34507
34530
|
return "Sharpening";
|
|
34508
34531
|
}
|
|
@@ -34609,7 +34632,7 @@ var EA = Object.defineProperty, ml = (s, e, t, i) => {
|
|
|
34609
34632
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34610
34633
|
return n && EA(e, t, n), n;
|
|
34611
34634
|
};
|
|
34612
|
-
class Vs extends
|
|
34635
|
+
class Vs extends ht {
|
|
34613
34636
|
get typeName() {
|
|
34614
34637
|
return "TiltShiftEffect";
|
|
34615
34638
|
}
|
|
@@ -34657,7 +34680,7 @@ var TA = Object.defineProperty, gy = (s, e, t, i) => {
|
|
|
34657
34680
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34658
34681
|
return n && TA(e, t, n), n;
|
|
34659
34682
|
};
|
|
34660
|
-
class gl extends
|
|
34683
|
+
class gl extends ht {
|
|
34661
34684
|
get typeName() {
|
|
34662
34685
|
return "Vignette";
|
|
34663
34686
|
}
|
|
@@ -34955,16 +34978,16 @@ class uh extends E {
|
|
|
34955
34978
|
*/
|
|
34956
34979
|
addEffect(e) {
|
|
34957
34980
|
let t = e;
|
|
34958
|
-
return t instanceof
|
|
34981
|
+
return t instanceof ht || (t = new eu(t), typeof e.order == "number" && (t.order = e.order)), t.gameObject === void 0 && this.gameObject.addComponent(t), this._effects.includes(t) || (this._effects.push(t), this._isDirty = !0), e;
|
|
34959
34982
|
}
|
|
34960
34983
|
/**
|
|
34961
34984
|
* Remove a post processing effect from the stack and schedules the effect stack to be re-created.
|
|
34962
34985
|
*/
|
|
34963
34986
|
removeEffect(e) {
|
|
34964
34987
|
let t = -1;
|
|
34965
|
-
if (e instanceof
|
|
34988
|
+
if (e instanceof ht ? t = this._effects.indexOf(e) : t = this._effects.findIndex((i) => i instanceof eu && i.effect === e), t !== -1)
|
|
34966
34989
|
return this._effects.splice(t, 1), this._isDirty = !0, e;
|
|
34967
|
-
if (e instanceof
|
|
34990
|
+
if (e instanceof ht) {
|
|
34968
34991
|
const i = this.sharedProfile?.components?.indexOf(e);
|
|
34969
34992
|
i !== void 0 && i !== -1 && (this._isDirty = !0, this.sharedProfile?.components?.splice(i, 1));
|
|
34970
34993
|
}
|
|
@@ -35107,10 +35130,10 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
|
|
|
35107
35130
|
}
|
|
35108
35131
|
}
|
|
35109
35132
|
fx([
|
|
35110
|
-
|
|
35133
|
+
et(fy)
|
|
35111
35134
|
], uh.prototype, "sharedProfile");
|
|
35112
35135
|
fx([
|
|
35113
|
-
|
|
35136
|
+
et()
|
|
35114
35137
|
], uh.prototype, "multisampling");
|
|
35115
35138
|
const td = /* @__PURE__ */ new Map();
|
|
35116
35139
|
ZT(uh);
|
|
@@ -35126,7 +35149,7 @@ var IA = Object.defineProperty, wt = (s, e, t, i) => {
|
|
|
35126
35149
|
const ft = x("debugsceneswitcher"), LA = x("sceneswitcher:clearscene"), xd = "scene";
|
|
35127
35150
|
yy(xd);
|
|
35128
35151
|
const Zs = Promise.resolve(!1);
|
|
35129
|
-
class
|
|
35152
|
+
class nt extends E {
|
|
35130
35153
|
autoLoadFirstScene = !0;
|
|
35131
35154
|
scenes = [];
|
|
35132
35155
|
loadingScene;
|
|
@@ -35534,58 +35557,58 @@ class it extends E {
|
|
|
35534
35557
|
}
|
|
35535
35558
|
wt([
|
|
35536
35559
|
u()
|
|
35537
|
-
],
|
|
35560
|
+
], nt.prototype, "autoLoadFirstScene");
|
|
35538
35561
|
wt([
|
|
35539
35562
|
u(ne)
|
|
35540
|
-
],
|
|
35563
|
+
], nt.prototype, "scenes");
|
|
35541
35564
|
wt([
|
|
35542
35565
|
u(ne)
|
|
35543
|
-
],
|
|
35566
|
+
], nt.prototype, "loadingScene");
|
|
35544
35567
|
wt([
|
|
35545
35568
|
u()
|
|
35546
|
-
],
|
|
35569
|
+
], nt.prototype, "queryParameterName");
|
|
35547
35570
|
wt([
|
|
35548
35571
|
u()
|
|
35549
|
-
],
|
|
35572
|
+
], nt.prototype, "useSceneName");
|
|
35550
35573
|
wt([
|
|
35551
35574
|
u()
|
|
35552
|
-
],
|
|
35575
|
+
], nt.prototype, "clamp");
|
|
35553
35576
|
wt([
|
|
35554
35577
|
u()
|
|
35555
|
-
],
|
|
35578
|
+
], nt.prototype, "useHistory");
|
|
35556
35579
|
wt([
|
|
35557
35580
|
u()
|
|
35558
|
-
],
|
|
35581
|
+
], nt.prototype, "useKeyboard");
|
|
35559
35582
|
wt([
|
|
35560
35583
|
u()
|
|
35561
|
-
],
|
|
35584
|
+
], nt.prototype, "useSwipe");
|
|
35562
35585
|
wt([
|
|
35563
35586
|
u()
|
|
35564
|
-
],
|
|
35587
|
+
], nt.prototype, "useSceneLighting");
|
|
35565
35588
|
wt([
|
|
35566
35589
|
u()
|
|
35567
|
-
],
|
|
35590
|
+
], nt.prototype, "useSceneBackground");
|
|
35568
35591
|
wt([
|
|
35569
35592
|
u()
|
|
35570
|
-
],
|
|
35593
|
+
], nt.prototype, "preloadNext");
|
|
35571
35594
|
wt([
|
|
35572
35595
|
u()
|
|
35573
|
-
],
|
|
35596
|
+
], nt.prototype, "preloadPrevious");
|
|
35574
35597
|
wt([
|
|
35575
35598
|
u()
|
|
35576
|
-
],
|
|
35599
|
+
], nt.prototype, "preloadConcurrent");
|
|
35577
35600
|
wt([
|
|
35578
35601
|
u()
|
|
35579
|
-
],
|
|
35602
|
+
], nt.prototype, "createMenuButtons");
|
|
35580
35603
|
wt([
|
|
35581
35604
|
u(de)
|
|
35582
|
-
],
|
|
35605
|
+
], nt.prototype, "sceneLoadingStart");
|
|
35583
35606
|
wt([
|
|
35584
35607
|
u(de)
|
|
35585
|
-
],
|
|
35608
|
+
], nt.prototype, "sceneLoadingProgress");
|
|
35586
35609
|
wt([
|
|
35587
35610
|
u(de)
|
|
35588
|
-
],
|
|
35611
|
+
], nt.prototype, "sceneLoaded");
|
|
35589
35612
|
function Bb(s) {
|
|
35590
35613
|
const t = s.split("/").pop()?.split(".").shift();
|
|
35591
35614
|
return t?.length ? t : s;
|
|
@@ -35704,7 +35727,7 @@ var UA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor, Di = (s, e
|
|
|
35704
35727
|
(r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
|
|
35705
35728
|
return i && n && UA(e, t, n), n;
|
|
35706
35729
|
};
|
|
35707
|
-
const
|
|
35730
|
+
const Ye = x("debugvideo");
|
|
35708
35731
|
var px = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.AdjustHeight = 1] = "AdjustHeight", s[s.AdjustWidth = 2] = "AdjustWidth", s))(px || {}), mx = /* @__PURE__ */ ((s) => (s[s.VideoClip = 0] = "VideoClip", s[s.Url = 1] = "Url", s))(mx || {}), gx = /* @__PURE__ */ ((s) => (s[s.CameraFarPlane = 0] = "CameraFarPlane", s[s.CameraNearPlane = 1] = "CameraNearPlane", s[s.RenderTexture = 2] = "RenderTexture", s[s.MaterialOverride = 3] = "MaterialOverride", s))(gx || {});
|
|
35709
35732
|
class yt extends E {
|
|
35710
35733
|
playOnAwake = !0;
|
|
@@ -35839,7 +35862,7 @@ class yt extends E {
|
|
|
35839
35862
|
wasPlaying = !1;
|
|
35840
35863
|
/** ensure's the video element has been created and will start loading the clip */
|
|
35841
35864
|
preloadVideo() {
|
|
35842
|
-
|
|
35865
|
+
Ye && console.log("Video Preload: " + this.name, this.clip), this.create(!1);
|
|
35843
35866
|
}
|
|
35844
35867
|
/** @deprecated use `preloadVideo()` */
|
|
35845
35868
|
preload() {
|
|
@@ -35851,11 +35874,11 @@ class yt extends E {
|
|
|
35851
35874
|
this.clip = e, this.source = 0, this._videoElement ? (this._videoElement.srcObject = e, this._isPlaying && this.play(), this.updateAspect()) : this.create(this.playOnAwake);
|
|
35852
35875
|
}
|
|
35853
35876
|
setClipURL(e) {
|
|
35854
|
-
this._url !== e && (this._url = e, this.source = 1,
|
|
35877
|
+
this._url !== e && (this._url = e, this.source = 1, Ye && console.log("set url", e), this._videoElement ? e.endsWith(".m3u8") || e.includes(".m3u") ? this.ensureM3UCanBePlayed() : (this._videoElement.src = e, this._isPlaying && (this.stop(), this.play())) : this.create(this.playOnAwake));
|
|
35855
35878
|
}
|
|
35856
35879
|
/** @internal */
|
|
35857
35880
|
onEnable() {
|
|
35858
|
-
|
|
35881
|
+
Ye && console.log("VideoPlayer.onEnable", mx[this.source], this.clip, this.url, this), window.addEventListener("visibilitychange", this.visibilityChanged), this.playOnAwake === !0 ? this.create(!0) : this.preloadVideo(), this.screenspace ? this._overlay?.start() : this._overlay?.stop();
|
|
35859
35882
|
}
|
|
35860
35883
|
/** @internal */
|
|
35861
35884
|
onDisable() {
|
|
@@ -35889,7 +35912,7 @@ class yt extends E {
|
|
|
35889
35912
|
/** start playing the video source */
|
|
35890
35913
|
play() {
|
|
35891
35914
|
if (this._videoElement || this.create(!1), !this._videoElement) {
|
|
35892
|
-
|
|
35915
|
+
Ye && console.warn("Can not play: no video element found", this);
|
|
35893
35916
|
return;
|
|
35894
35917
|
}
|
|
35895
35918
|
if (!(this._isPlaying && !this._videoElement?.ended && !this._videoElement?.paused)) {
|
|
@@ -35897,24 +35920,24 @@ class yt extends E {
|
|
|
35897
35920
|
this.ensureM3UCanBePlayed();
|
|
35898
35921
|
return;
|
|
35899
35922
|
}
|
|
35900
|
-
|
|
35901
|
-
console.log(e),
|
|
35923
|
+
Ye && console.log("Video Play()", this.clip, this._videoElement, this.time), this._videoElement.currentTime = this.time, this._videoElement.play().catch((e) => {
|
|
35924
|
+
console.log(e), Ye && console.error("Error playing video", e, "CODE=" + e.code, this.videoElement?.src, this), setTimeout(() => {
|
|
35902
35925
|
this._isPlaying && !this.destroyed && this.activeAndEnabled && this.play();
|
|
35903
35926
|
}, 1e3);
|
|
35904
|
-
}),
|
|
35927
|
+
}), Ye && console.log("play", this._videoElement, this.time);
|
|
35905
35928
|
}
|
|
35906
35929
|
}
|
|
35907
35930
|
/**
|
|
35908
35931
|
* Stop the video playback. This will reset the video to the beginning
|
|
35909
35932
|
*/
|
|
35910
35933
|
stop() {
|
|
35911
|
-
this._isPlaying = !1, this.time = 0, this._videoElement && (this._videoElement.currentTime = 0, this._videoElement.pause(),
|
|
35934
|
+
this._isPlaying = !1, this.time = 0, this._videoElement && (this._videoElement.currentTime = 0, this._videoElement.pause(), Ye && console.log("STOP", this));
|
|
35912
35935
|
}
|
|
35913
35936
|
/**
|
|
35914
35937
|
* Pause the video playback
|
|
35915
35938
|
*/
|
|
35916
35939
|
pause() {
|
|
35917
|
-
this.time = this._videoElement?.currentTime ?? 0, this._isPlaying = !1, this._videoElement?.pause(),
|
|
35940
|
+
this.time = this._videoElement?.currentTime ?? 0, this._isPlaying = !1, this._videoElement?.pause(), Ye && console.log("PAUSE", this, this.currentTime);
|
|
35918
35941
|
}
|
|
35919
35942
|
/** create the video element and assign the video source url or stream */
|
|
35920
35943
|
create(e) {
|
|
@@ -35927,7 +35950,7 @@ class yt extends E {
|
|
|
35927
35950
|
t = this.url, !t?.length && typeof this.clip == "string" && (t = this.clip);
|
|
35928
35951
|
break;
|
|
35929
35952
|
}
|
|
35930
|
-
return t ? (this._videoElement || (
|
|
35953
|
+
return t ? (this._videoElement || (Ye && console.warn("Create VideoElement", this), this._videoElement = this.createVideoElement(), this.context.domElement.shadowRoot.prepend(this._videoElement), this.updateVideoElementStyles()), typeof t == "string" ? (Ye && console.log("Set Video src", t), this._videoElement.src = t) : (Ye && console.log("Set Video srcObject", t), this._videoElement.srcObject = t), this._videoTexture || (this._videoTexture = new eC(this._videoElement)), this._videoTexture.flipY = !1, this._videoTexture.colorSpace = As, e && this.handleBeginPlaying(e), Ye && console.log("Video: handle playing done...", t, e), !0) : (Ye && console.warn("No video source set", this), !1);
|
|
35931
35954
|
}
|
|
35932
35955
|
updateAspect() {
|
|
35933
35956
|
this.aspectMode !== 0 && this.startCoroutine(this.updateAspectImpl());
|
|
@@ -35950,7 +35973,7 @@ class yt extends E {
|
|
|
35950
35973
|
_targetObjects;
|
|
35951
35974
|
createVideoElement() {
|
|
35952
35975
|
const e = document.createElement("video");
|
|
35953
|
-
return this._crossOrigin && e.setAttribute("crossorigin", this._crossOrigin),
|
|
35976
|
+
return this._crossOrigin && e.setAttribute("crossorigin", this._crossOrigin), Ye && console.log("created video element", e), e;
|
|
35954
35977
|
}
|
|
35955
35978
|
handleBeginPlaying(e) {
|
|
35956
35979
|
if (!this.activeAndEnabled || !this._videoElement) return;
|
|
@@ -35973,11 +35996,11 @@ class yt extends E {
|
|
|
35973
35996
|
this._targetObjects.push(t), i !== this._videoMaterial && (this._videoMaterial = i.clone(), t.material = this._videoMaterial);
|
|
35974
35997
|
const n = "map", o = this._videoMaterial;
|
|
35975
35998
|
if (!this.targetMaterialProperty)
|
|
35976
|
-
o[n] = this._videoTexture;
|
|
35999
|
+
Ye && o[n] === void 0 && console.warn(`The target material does not have a '${n}' property, video might not render correctly.`), o[n] = this._videoTexture;
|
|
35977
36000
|
else
|
|
35978
36001
|
switch (this.targetMaterialProperty) {
|
|
35979
36002
|
default:
|
|
35980
|
-
o[n] = this._videoTexture;
|
|
36003
|
+
Ye && o[this.targetMaterialProperty] === void 0 && console.warn(`The target material does not have a '${this.targetMaterialProperty}' property, video might not render correctly.`), o[n] = this._videoTexture;
|
|
35981
36004
|
break;
|
|
35982
36005
|
}
|
|
35983
36006
|
} else {
|
|
@@ -36045,11 +36068,11 @@ class yt extends E {
|
|
|
36045
36068
|
ensureM3UCanBePlayed() {
|
|
36046
36069
|
if (!this.shouldUseM3U) return;
|
|
36047
36070
|
let e = document.head.querySelector("script[data-hls_library]");
|
|
36048
|
-
e ? globalThis.Hls ? this.onHlsAvailable() : e.addEventListener("load", this.onHlsAvailable) : (
|
|
36071
|
+
e ? globalThis.Hls ? this.onHlsAvailable() : e.addEventListener("load", this.onHlsAvailable) : (Ye && console.log("HLS: load script"), e = document.createElement("script"), e.dataset.hls_library = "hls.js", e.src = "https://cdn.jsdelivr.net/npm/hls.js@1", e.addEventListener("load", this.onHlsAvailable), document.head.append(e));
|
|
36049
36072
|
}
|
|
36050
36073
|
_hls;
|
|
36051
36074
|
onHlsAvailable = () => {
|
|
36052
|
-
|
|
36075
|
+
Ye && console.log("HLS: available", this.clip), !(!this.shouldUseM3U || !this.url) && (this._hls || (this._hls = new Hls()), this.videoElement.autoplay = !0, this._hls.loadSource(this.url), this._hls.attachMedia(this.videoElement), this._videoElement?.play(), Ye && console.log("HLS: loaded", this.clip));
|
|
36053
36076
|
};
|
|
36054
36077
|
}
|
|
36055
36078
|
Di([
|
|
@@ -37656,16 +37679,16 @@ class Ds {
|
|
|
37656
37679
|
tangentOut = new y();
|
|
37657
37680
|
}
|
|
37658
37681
|
_l([
|
|
37659
|
-
|
|
37682
|
+
et(y)
|
|
37660
37683
|
], Ds.prototype, "position", 2);
|
|
37661
37684
|
_l([
|
|
37662
|
-
|
|
37685
|
+
et(V)
|
|
37663
37686
|
], Ds.prototype, "rotation", 2);
|
|
37664
37687
|
_l([
|
|
37665
|
-
|
|
37688
|
+
et(y)
|
|
37666
37689
|
], Ds.prototype, "tangentIn", 2);
|
|
37667
37690
|
_l([
|
|
37668
|
-
|
|
37691
|
+
et(y)
|
|
37669
37692
|
], Ds.prototype, "tangentOut", 2);
|
|
37670
37693
|
class bl extends E {
|
|
37671
37694
|
/**
|
|
@@ -37955,10 +37978,10 @@ class bl extends E {
|
|
|
37955
37978
|
}
|
|
37956
37979
|
}
|
|
37957
37980
|
_l([
|
|
37958
|
-
|
|
37981
|
+
et()
|
|
37959
37982
|
], bl.prototype, "closed", 1);
|
|
37960
37983
|
_l([
|
|
37961
|
-
|
|
37984
|
+
et(Ds)
|
|
37962
37985
|
], bl.prototype, "spline", 2);
|
|
37963
37986
|
function fI(s, e) {
|
|
37964
37987
|
const t = s.map((o) => new y(-o.position.x, o.position.y, o.position.z));
|
|
@@ -38049,28 +38072,28 @@ class Rn extends E {
|
|
|
38049
38072
|
_lastPositionVector = new y();
|
|
38050
38073
|
}
|
|
38051
38074
|
Uo([
|
|
38052
|
-
|
|
38075
|
+
et(bl)
|
|
38053
38076
|
], Rn.prototype, "spline", 2);
|
|
38054
38077
|
Uo([
|
|
38055
|
-
|
|
38078
|
+
et(M)
|
|
38056
38079
|
], Rn.prototype, "object", 2);
|
|
38057
38080
|
Uo([
|
|
38058
|
-
|
|
38081
|
+
et()
|
|
38059
38082
|
], Rn.prototype, "useLookAt", 2);
|
|
38060
38083
|
Uo([
|
|
38061
|
-
|
|
38084
|
+
et(M)
|
|
38062
38085
|
], Rn.prototype, "lookAt", 2);
|
|
38063
38086
|
Uo([
|
|
38064
|
-
|
|
38087
|
+
et()
|
|
38065
38088
|
], Rn.prototype, "clamp", 2);
|
|
38066
38089
|
Uo([
|
|
38067
|
-
|
|
38090
|
+
et()
|
|
38068
38091
|
], Rn.prototype, "position01", 1);
|
|
38069
38092
|
Uo([
|
|
38070
|
-
|
|
38093
|
+
et()
|
|
38071
38094
|
], Rn.prototype, "autoRun", 2);
|
|
38072
38095
|
Uo([
|
|
38073
|
-
|
|
38096
|
+
et()
|
|
38074
38097
|
], Rn.prototype, "duration", 2);
|
|
38075
38098
|
class Nn {
|
|
38076
38099
|
bb = null;
|
|
@@ -38667,7 +38690,7 @@ class OI {
|
|
|
38667
38690
|
if (r.name.endsWith(n))
|
|
38668
38691
|
this.rootStartPosition = new y().fromArray(r.values, 0), this.rootEndPosition = new y().fromArray(r.values, r.values.length - 3), this.rootPositionOffset = this.rootEndPosition.clone().sub(this.rootStartPosition), Vn && console.log(this.rootPositionOffset);
|
|
38669
38692
|
else if (r.name.endsWith(o) && (this.rootStartQuaternion = new V().fromArray(r.values, 0), this.rootEndQuaternion = new V().fromArray(r.values, r.values.length - 4), this.rootQuaternionOffset = this.rootEndQuaternion.clone().multiply(this.rootStartQuaternion), Vn)) {
|
|
38670
|
-
const a = new
|
|
38693
|
+
const a = new ct().setFromQuaternion(this.rootQuaternionOffset);
|
|
38671
38694
|
console.log("ROT", a);
|
|
38672
38695
|
}
|
|
38673
38696
|
}
|
|
@@ -40332,7 +40355,7 @@ const vh = class Ex extends E {
|
|
|
40332
40355
|
if (t.uuid === this.gameObject.uuid) {
|
|
40333
40356
|
let n = t;
|
|
40334
40357
|
if (this.keepUpDirection) {
|
|
40335
|
-
const r =
|
|
40358
|
+
const r = lt.createEmptyParent(t);
|
|
40336
40359
|
n = r;
|
|
40337
40360
|
const a = this.invertForward ? -1 : 1;
|
|
40338
40361
|
r.setMatrix(r.getMatrix().multiply(new J().makeRotationZ(Math.PI / 2 * a))), t.setMatrix(t.getMatrix().multiply(new J().makeRotationZ(-Math.PI / 2 * a)));
|
|
@@ -40825,7 +40848,7 @@ var Ix = Object.defineProperty, qI = Object.getOwnPropertyDescriptor, XI = (s, e
|
|
|
40825
40848
|
return i && n && Ix(e, t, n), n;
|
|
40826
40849
|
}, Ty = (s, e, t) => XI(s, typeof e != "symbol" ? e + "" : e, t);
|
|
40827
40850
|
const eo = x("debugviewbox"), QI = new ae(0.5, 0.5, 0.5, 0.5);
|
|
40828
|
-
let
|
|
40851
|
+
let at = class extends E {
|
|
40829
40852
|
referenceFieldOfView = -1;
|
|
40830
40853
|
get mode() {
|
|
40831
40854
|
return this._mode;
|
|
@@ -40837,13 +40860,13 @@ let rt = class extends E {
|
|
|
40837
40860
|
debug = !1;
|
|
40838
40861
|
/** @internal */
|
|
40839
40862
|
onEnable() {
|
|
40840
|
-
(eo || this.debug || L()) && console.debug("[ViewBox] Using camera fov:", this.referenceFieldOfView),
|
|
40863
|
+
(eo || this.debug || L()) && console.debug("[ViewBox] Using camera fov:", this.referenceFieldOfView), at.instances.push(this), this._applyCount = 0, this.removeUpdateCallback(), this.context.pre_render_callbacks.push(this.internalUpdate);
|
|
40841
40864
|
}
|
|
40842
40865
|
/** @internal */
|
|
40843
40866
|
onDisable() {
|
|
40844
40867
|
(eo || this.debug) && console.debug("[ViewBox] Disabled");
|
|
40845
|
-
const s =
|
|
40846
|
-
s !== -1 &&
|
|
40868
|
+
const s = at.instances.indexOf(this);
|
|
40869
|
+
s !== -1 && at.instances.splice(s, 1), this._projectedBoxElement?.remove(), this.removeUpdateCallback();
|
|
40847
40870
|
}
|
|
40848
40871
|
removeUpdateCallback() {
|
|
40849
40872
|
const s = this.context.pre_render_callbacks.indexOf(this.internalUpdate);
|
|
@@ -40852,7 +40875,7 @@ let rt = class extends E {
|
|
|
40852
40875
|
_applyCount = 0;
|
|
40853
40876
|
internalUpdate = () => {
|
|
40854
40877
|
if (this.context.isInXR || this.destroyed || !this.activeAndEnabled) return;
|
|
40855
|
-
if (!(
|
|
40878
|
+
if (!(at.instances[at.instances.length - 1] === this)) {
|
|
40856
40879
|
(eo || this.debug) && U.DrawWireBox(this.gameObject.worldPosition, this.gameObject.worldScale, QI);
|
|
40857
40880
|
return;
|
|
40858
40881
|
}
|
|
@@ -40870,7 +40893,7 @@ let rt = class extends E {
|
|
|
40870
40893
|
const t = this.context.domWidth, i = this.context.domHeight;
|
|
40871
40894
|
let n = t, o = i, r = 1, a = 1;
|
|
40872
40895
|
const l = this.context.focusRectSize;
|
|
40873
|
-
l && (n = l.width, o = l.height, r = t / n, a = i / o),
|
|
40896
|
+
l && (n = l.width, o = l.height, r = t / n, a = i / o), at._tempProjectionMatrix.copy(e.projectionMatrix), at._tempProjectionMatrixInverse.copy(e.projectionMatrixInverse);
|
|
40874
40897
|
const c = e.view, h = e.zoom, d = e.aspect, f = e.fov;
|
|
40875
40898
|
e.view = null, e.zoom = 1, e.fov = this.referenceFieldOfView, e.updateProjectionMatrix();
|
|
40876
40899
|
const p = this.gameObject.worldPosition, m = this.gameObject.worldScale, _ = e.worldPosition, g = _.distanceTo(p), w = Math.max(m.x, m.y, m.z), b = z(_).sub(p);
|
|
@@ -40889,7 +40912,7 @@ let rt = class extends E {
|
|
|
40889
40912
|
R / r,
|
|
40890
40913
|
O / a
|
|
40891
40914
|
) / (O * 0.5), k = z(p);
|
|
40892
|
-
k.project(e), this.context.focusRectSettings.offsetX = k.x, this.context.focusRectSettings.offsetY = k.y, this.context.focusRectSettings.zoom = X, this.context.focusRect || this.context.setCameraFocusRect(this.context.domElement), e.view = c, e.zoom = h, e.aspect = d, e.fov = f, e.projectionMatrix.copy(
|
|
40915
|
+
k.project(e), this.context.focusRectSettings.offsetX = k.x, this.context.focusRectSettings.offsetY = k.y, this.context.focusRectSettings.zoom = X, this.context.focusRect || this.context.setCameraFocusRect(this.context.domElement), e.view = c, e.zoom = h, e.aspect = d, e.fov = f, e.projectionMatrix.copy(at._tempProjectionMatrix), e.projectionMatrixInverse.copy(at._tempProjectionMatrixInverse);
|
|
40893
40916
|
};
|
|
40894
40917
|
/**
|
|
40895
40918
|
* Cover fit
|
|
@@ -40918,21 +40941,21 @@ let rt = class extends E {
|
|
|
40918
40941
|
}
|
|
40919
40942
|
_projectedBoxElement = null;
|
|
40920
40943
|
};
|
|
40921
|
-
Ty(
|
|
40922
|
-
Ty(
|
|
40923
|
-
Ty(
|
|
40944
|
+
Ty(at, "instances", []);
|
|
40945
|
+
Ty(at, "_tempProjectionMatrix", new J());
|
|
40946
|
+
Ty(at, "_tempProjectionMatrixInverse", new J());
|
|
40924
40947
|
_f([
|
|
40925
40948
|
u()
|
|
40926
|
-
],
|
|
40949
|
+
], at.prototype, "referenceFieldOfView", 2);
|
|
40927
40950
|
_f([
|
|
40928
40951
|
u()
|
|
40929
|
-
],
|
|
40952
|
+
], at.prototype, "mode", 1);
|
|
40930
40953
|
_f([
|
|
40931
40954
|
u()
|
|
40932
|
-
],
|
|
40933
|
-
|
|
40955
|
+
], at.prototype, "debug", 2);
|
|
40956
|
+
at = _f([
|
|
40934
40957
|
bv
|
|
40935
|
-
],
|
|
40958
|
+
], at);
|
|
40936
40959
|
var YI = Object.defineProperty, Cl = (s, e, t, i) => {
|
|
40937
40960
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
40938
40961
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
@@ -42144,8 +42167,8 @@ P.add("ReflectionProbe", Xd);
|
|
|
42144
42167
|
P.add("Renderer", ui);
|
|
42145
42168
|
P.add("MeshRenderer", Bu);
|
|
42146
42169
|
P.add("SkinnedMeshRenderer", pw);
|
|
42147
|
-
P.add("Rigidbody",
|
|
42148
|
-
P.add("SceneSwitcher",
|
|
42170
|
+
P.add("Rigidbody", Je);
|
|
42171
|
+
P.add("SceneSwitcher", nt);
|
|
42149
42172
|
P.add("ScreenCapture", Qr);
|
|
42150
42173
|
P.add("SeeThrough", Fo);
|
|
42151
42174
|
P.add("ShadowCatcher", af);
|
|
@@ -42200,7 +42223,7 @@ P.add("ClickThrough", Ey);
|
|
|
42200
42223
|
P.add("CursorFollow", wl);
|
|
42201
42224
|
P.add("HoverAnimation", js);
|
|
42202
42225
|
P.add("ScrollFollow", Wo);
|
|
42203
|
-
P.add("ViewBox",
|
|
42226
|
+
P.add("ViewBox", at);
|
|
42204
42227
|
P.add("Avatar", Er);
|
|
42205
42228
|
P.add("XRControllerFollow", Vo);
|
|
42206
42229
|
P.add("XRControllerModel", Po);
|
|
@@ -44664,10 +44687,10 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
44664
44687
|
RemoteSkybox: _y,
|
|
44665
44688
|
Renderer: ui,
|
|
44666
44689
|
RendererLightmap: fw,
|
|
44667
|
-
Rigidbody:
|
|
44690
|
+
Rigidbody: Je,
|
|
44668
44691
|
RotationBySpeedModule: On,
|
|
44669
44692
|
RotationOverLifetimeModule: ss,
|
|
44670
|
-
SceneSwitcher:
|
|
44693
|
+
SceneSwitcher: nt,
|
|
44671
44694
|
ScreenCapture: Qr,
|
|
44672
44695
|
ScreenSpaceAmbientOcclusion: Bo,
|
|
44673
44696
|
ScreenSpaceAmbientOcclusionN8: rs,
|
|
@@ -44729,7 +44752,7 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
44729
44752
|
VerticalLayoutGroup: qw,
|
|
44730
44753
|
VideoPlayer: yt,
|
|
44731
44754
|
get ViewBox() {
|
|
44732
|
-
return
|
|
44755
|
+
return at;
|
|
44733
44756
|
},
|
|
44734
44757
|
Vignette: gl,
|
|
44735
44758
|
VisibilityAction: $u,
|
|
@@ -45106,7 +45129,7 @@ export {
|
|
|
45106
45129
|
gk as PlayerViewManager,
|
|
45107
45130
|
Eu as PointerEventData,
|
|
45108
45131
|
cg as PointerType,
|
|
45109
|
-
|
|
45132
|
+
ht as PostProcessingEffect,
|
|
45110
45133
|
ut as PostProcessingEffectOrder,
|
|
45111
45134
|
ux as PostProcessingHandler,
|
|
45112
45135
|
th as PreliminaryAction,
|
|
@@ -45130,13 +45153,13 @@ export {
|
|
|
45130
45153
|
ui as Renderer,
|
|
45131
45154
|
Sk as RendererData,
|
|
45132
45155
|
fw as RendererLightmap,
|
|
45133
|
-
|
|
45134
|
-
|
|
45156
|
+
Je as Rigidbody,
|
|
45157
|
+
Ke as RigidbodyConstraints,
|
|
45135
45158
|
ie as RoomEvents,
|
|
45136
45159
|
On as RotationBySpeedModule,
|
|
45137
45160
|
ss as RotationOverLifetimeModule,
|
|
45138
45161
|
bm as SceneLightSettings,
|
|
45139
|
-
|
|
45162
|
+
nt as SceneSwitcher,
|
|
45140
45163
|
Qr as ScreenCapture,
|
|
45141
45164
|
Bo as ScreenSpaceAmbientOcclusion,
|
|
45142
45165
|
rs as ScreenSpaceAmbientOcclusionN8,
|
|
@@ -45203,7 +45226,7 @@ export {
|
|
|
45203
45226
|
Gv as UIRaycastUtils,
|
|
45204
45227
|
Gu as UIRootComponent,
|
|
45205
45228
|
Ow as USDDocument,
|
|
45206
|
-
|
|
45229
|
+
lt as USDObject,
|
|
45207
45230
|
cE as USDWriter,
|
|
45208
45231
|
dE as USDZExporter,
|
|
45209
45232
|
qn as USDZExporter$1,
|
|
@@ -45217,7 +45240,7 @@ export {
|
|
|
45217
45240
|
Xe as VelocityOverLifetimeModule,
|
|
45218
45241
|
qw as VerticalLayoutGroup,
|
|
45219
45242
|
yt as VideoPlayer,
|
|
45220
|
-
|
|
45243
|
+
at as ViewBox,
|
|
45221
45244
|
_o as ViewDevice,
|
|
45222
45245
|
gl as Vignette,
|
|
45223
45246
|
$u as VisibilityAction,
|
|
@@ -45418,7 +45441,7 @@ export {
|
|
|
45418
45441
|
mv as sendDestroyed,
|
|
45419
45442
|
u as serializable,
|
|
45420
45443
|
IO as serializeObject,
|
|
45421
|
-
|
|
45444
|
+
et as serializeable,
|
|
45422
45445
|
dd as setActive,
|
|
45423
45446
|
o1 as setAllowBalloonMessages,
|
|
45424
45447
|
aD as setAllowOverlayMessages,
|