Needle Engine

Changes between version 3.10.7-beta and 3.11.0-beta
Files changed (233) hide show
  1. src/engine/codegen/register_types.js +0 -437
  2. src/engine-components/export/usdz/extensions/behavior/Actions.ts +2 -2
  3. src/engine-components/AlignmentConstraint.ts +3 -3
  4. src/engine-components/Animation.ts +6 -6
  5. src/engine-components/export/usdz/extensions/Animation.ts +4 -4
  6. src/engine-components/AnimationCurve.ts +2 -2
  7. src/engine-components/AnimationUtils.ts +16 -14
  8. src/engine-components/export/usdz/utils/animationutils.ts +4 -4
  9. src/engine-components/Animator.ts +22 -11
  10. src/engine-components/AnimatorController.ts +27 -20
  11. src/engine-components/postprocessing/Effects/Antialiasing.ts +4 -4
  12. src/engine-components-experimental/api.ts +1 -1
  13. src/engine-components/api.ts +13 -13
  14. src/engine/api.ts +49 -49
  15. src/engine-components/export/usdz/extensions/behavior/AudioExtension.ts +4 -4
  16. src/engine-components/AudioListener.ts +3 -3
  17. src/engine-components/AudioSource.ts +5 -5
  18. src/engine-components/avatar/Avatar_Brain_LookAt.ts +7 -7
  19. src/engine-components/avatar/Avatar_MouthShapes.ts +5 -5
  20. src/engine-components/avatar/Avatar_MustacheShake.ts +3 -3
  21. src/engine-components/avatar/AvatarBlink_Simple.ts +3 -3
  22. src/engine-components/avatar/AvatarEyeLook_Rotation.ts +4 -4
  23. src/engine-components/AvatarLoader.ts +8 -8
  24. src/engine-components/AxesHelper.ts +3 -3
  25. src/engine-components/ui/BaseUIComponent.ts +7 -7
  26. src/engine-components/BasicIKConstraint.ts +2 -2
  27. src/engine-components/export/usdz/extensions/behavior/Behaviour.ts +5 -5
  28. src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +12 -12
  29. src/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.ts +2 -2
  30. src/engine-components/postprocessing/Effects/Bloom.ts +4 -4
  31. src/engine-components/BoxCollider.ts +1 -1
  32. src/engine-components/BoxHelperComponent.ts +4 -4
  33. src/engine-components/ui/Button.ts +9 -9
  34. src/engine-components/Camera.ts +11 -11
  35. src/engine-components/CameraUtils.ts +9 -9
  36. src/engine-components/ui/Canvas.ts +12 -12
  37. src/engine-components/ui/CanvasGroup.ts +6 -6
  38. src/engine-components/CharacterController.ts +9 -9
  39. src/engine-components/postprocessing/Effects/ChromaticAberration.ts +4 -4
  40. src/engine-components/Collider.ts +7 -7
  41. src/engine-components/postprocessing/Effects/ColorAdjustments.ts +4 -4
  42. src/engine-components/Component.ts +10 -10
  43. src/engine-components/codegen/components.ts +212 -212
  44. src/engine/debug/debug_console.ts +3 -3
  45. src/engine/debug/debug_overlay.ts +3 -3
  46. src/engine/debug/debug.ts +3 -3
  47. src/engine-components/DeleteBox.ts +5 -5
  48. src/engine-components/postprocessing/Effects/DepthOfField.ts +6 -6
  49. src/engine-components/DeviceFlag.ts +2 -2
  50. src/engine-components/export/usdz/extensions/DocumentExtension.ts +1 -1
  51. src/engine-components/DragControls.ts +16 -16
  52. src/engine-components/DropListener.ts +7 -7
  53. src/engine-components/Duplicatable.ts +7 -7
  54. src/engine/engine_addressables.ts +10 -10
  55. src/engine/engine_application.ts +1 -1
  56. src/engine/engine_assetdatabase.ts +3 -3
  57. src/engine/engine_camera.ts +1 -1
  58. src/engine/engine_components_internal.ts +2 -2
  59. src/engine/engine_components.ts +8 -8
  60. src/engine/engine_constants.ts +1 -1
  61. src/engine/engine_context_registry.ts +1 -1
  62. src/engine/engine_context.ts +20 -20
  63. src/engine/engine_coroutine.ts +1 -1
  64. src/engine/engine_default_parameters.ts +1 -1
  65. src/engine/engine_element_extras.ts +1 -1
  66. src/engine/engine_element_loading.ts +6 -6
  67. src/engine/engine_element_overlay.ts +2 -2
  68. src/engine/engine_element.ts +18 -17
  69. src/engine/engine_gameobject.ts +13 -13
  70. src/engine/engine_gizmos.ts +3 -3
  71. src/engine/engine_gltf_builtin_components.ts +15 -15
  72. src/engine/engine_gltf.ts +4 -4
  73. src/engine/engine_hot_reload.ts +5 -6
  74. src/engine/engine_input.ts +5 -5
  75. src/engine/engine_license.ts +5 -5
  76. src/engine/engine_lightdata.ts +4 -4
  77. src/engine/engine_loaders.ts +2 -2
  78. src/engine/engine_mainloop_utils.ts +7 -7
  79. src/engine/engine_math.ts +1 -1
  80. src/engine/engine_networking_auto.ts +3 -3
  81. src/engine/engine_networking_files_default_components.ts +6 -6
  82. src/engine/engine_networking_files.ts +10 -10
  83. src/engine/engine_networking_instantiate.ts +11 -11
  84. src/engine/engine_networking_utils.ts +1 -1
  85. src/engine/engine_networking.ts +8 -8
  86. src/engine/engine_patcher.ts +1 -1
  87. src/engine/engine_physics_rapier.ts +10 -10
  88. src/engine/engine_physics.ts +5 -5
  89. src/engine/engine_playerview.ts +2 -2
  90. src/engine/engine_scenelighting.ts +6 -6
  91. src/engine/engine_scenetools.ts +11 -11
  92. src/engine/engine_serialization_builtin_serializer.ts +10 -10
  93. src/engine/engine_serialization_core.ts +9 -9
  94. src/engine/engine_serialization_decorator.ts +1 -1
  95. src/engine/engine_serialization.ts +3 -3
  96. src/engine/engine_setup.ts +1 -1
  97. src/engine/engine_shaders.ts +4 -4
  98. src/engine/engine_texture.ts +1 -1
  99. src/engine/engine_three_utils.ts +2 -2
  100. src/engine/engine_time.ts +2 -2
  101. src/engine/engine_types.ts +4 -5
  102. src/engine/engine_util_decorator.ts +3 -3
  103. src/engine/engine_utils_screenshot.ts +1 -1
  104. src/engine/engine_utils.ts +3 -2
  105. src/engine/engine.ts +5 -5
  106. src/engine-components/ui/EventSystem.ts +14 -14
  107. src/engine-components/EventTrigger.ts +5 -5
  108. src/engine/extensions/EXT_texture_exr.ts +6 -5
  109. src/engine/extensions/extension_resolver.ts +1 -1
  110. src/engine/extensions/extension_utils.ts +4 -4
  111. src/engine-components/export/usdz/Extension.ts +1 -1
  112. src/engine/extensions/extensions.ts +20 -20
  113. src/engine-components/js-extensions/ExtensionUtils.ts +1 -1
  114. src/engine-components/FlyControls.ts +3 -3
  115. src/engine-components/Fog.ts +2 -2
  116. src/engine-components/Gizmos.ts +5 -5
  117. src/engine-components/export/gltf/GltfExport.ts +6 -6
  118. src/engine-components/ui/Graphic.ts +9 -9
  119. src/engine-components/GridHelper.ts +3 -3
  120. src/engine-components/GroundProjection.ts +3 -3
  121. src/engine-components/ui/Image.ts +2 -2
  122. src/engine-components/export/gltf/index.ts +1 -1
  123. src/engine-components/export/index.ts +1 -1
  124. src/engine-components/export/usdz/index.ts +3 -3
  125. src/engine-components/js-extensions/index.ts +3 -3
  126. src/engine-components/postprocessing/index.ts +4 -4
  127. src/engine-components/timeline/index.ts +3 -3
  128. src/engine-components/ui/index.ts +1 -1
  129. src/engine-components/webxr/index.ts +4 -4
  130. src/engine/debug/index.ts +1 -1
  131. src/engine/extensions/index.ts +5 -5
  132. src/engine/js-extensions/index.ts +2 -2
  133. src/engine-components/ui/InputField.ts +8 -10
  134. src/engine-components/Interactable.ts +2 -2
  135. src/engine-components/ui/Interfaces.ts +2 -2
  136. src/engine-components/Joints.ts +3 -3
  137. src/engine-components/ui/Layout.ts +6 -6
  138. src/engine-components/Light.ts +10 -10
  139. src/engine-components/LODGroup.ts +6 -6
  140. src/engine-components/debug/LogStats.ts +3 -3
  141. src/engine-components/utils/LookAt.ts +6 -6
  142. src/engine-components/LookAtConstraint.ts +2 -2
  143. src/engine/extensions/NEEDLE_animator_controller_model.ts +3 -3
  144. src/engine/extensions/NEEDLE_components.ts +7 -7
  145. src/engine/extensions/NEEDLE_gameobject_data.ts +1 -1
  146. src/engine/extensions/NEEDLE_lighting_settings.ts +9 -9
  147. src/engine/extensions/NEEDLE_lightmaps.ts +5 -5
  148. src/engine/extensions/NEEDLE_persistent_assets.ts +5 -5
  149. src/engine/extensions/NEEDLE_progressive.ts +5 -5
  150. src/engine/extensions/NEEDLE_render_objects.ts +7 -7
  151. src/engine/extensions/NEEDLE_techniques_webgl.ts +8 -8
  152. src/needle-engine.ts +50 -49
  153. src/engine-components/NestedGltf.ts +6 -6
  154. src/engine-components/Networking.ts +5 -5
  155. src/engine-components/js-extensions/Object3D.ts +5 -5
  156. src/engine-components/OffsetConstraint.ts +3 -3
  157. src/engine-components/utils/OpenURL.ts +7 -7
  158. src/engine-components/OrbitControls.ts +32 -30
  159. src/engine-components/ui/Outline.ts +3 -3
  160. src/engine-components/ParticleSystem.ts +15 -15
  161. src/engine-components/ParticleSystemModules.ts +8 -8
  162. src/engine-components/ParticleSystemSubEmitter.ts +3 -3
  163. src/engine-components/postprocessing/Effects/Pixelation.ts +4 -4
  164. src/engine-components/timeline/PlayableDirector.ts +29 -17
  165. src/engine-components/PlayerColor.ts +4 -4
  166. src/engine-components-experimental/networking/PlayerSync.ts +8 -8
  167. src/engine-components/ui/PointerEvents.ts +1 -1
  168. src/engine-components/postprocessing/PostProcessingEffect.ts +6 -6
  169. src/engine-components/postprocessing/PostProcessingHandler.ts +6 -6
  170. src/engine-components-experimental/Presentation.ts +2 -2
  171. src/engine-components/export/usdz/utils/quicklook.ts +1 -1
  172. src/engine-components/ui/Raycaster.ts +3 -3
  173. src/engine-components/ui/RaycastUtils.ts +5 -5
  174. src/engine-components/ui/RectTransform.ts +8 -8
  175. src/engine-components/ReflectionProbe.ts +7 -7
  176. src/engine-components/Renderer.ts +15 -15
  177. src/engine-components/RendererLightmap.ts +3 -3
  178. src/engine-components/js-extensions/RGBAColor.ts +1 -1
  179. src/engine-components/RigidBody.ts +8 -8
  180. src/engine-components/SceneSwitcher.ts +7 -7
  181. src/engine-schemes/schemes.ts +5 -6
  182. src/engine-components/ScreenCapture.ts +11 -11
  183. src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.ts +4 -4
  184. src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.ts +5 -5
  185. src/engine-components/ShadowCatcher.ts +4 -4
  186. src/engine-components/timeline/SignalAsset.ts +4 -4
  187. src/engine-components/Skybox.ts +10 -10
  188. src/engine-components/SmoothFollow.ts +6 -6
  189. src/engine-components/ui/SpatialHtml.ts +2 -2
  190. src/engine-components/SpatialTrigger.ts +5 -5
  191. src/engine-components/SpectatorCamera.ts +16 -16
  192. src/engine-components/SphereCollider.ts +1 -1
  193. src/engine-components/SpriteRenderer.ts +4 -4
  194. src/engine-schemes/synced-camera-model.ts +1 -1
  195. src/engine-schemes/synced-transform-model.ts +1 -1
  196. src/engine-components/SyncedCamera.ts +207 -207
  197. src/engine-components/SyncedRoom.ts +4 -4
  198. src/engine-components/SyncedTransform.ts +336 -336
  199. src/engine/tests/test_utils.ts +2 -2
  200. src/engine-components/TestRunner.ts +6 -6
  201. src/engine-components/ui/Text.ts +7 -7
  202. src/engine-components/export/usdz/ThreeUSDZExporter.ts +2 -2
  203. src/engine-components/postprocessing/Effects/TiltShiftEffect.ts +4 -4
  204. src/engine-components/timeline/TimelineTracks.ts +50 -25
  205. src/engine-components/postprocessing/Effects/Tonemapping.ts +4 -4
  206. src/engine-schemes/transform.ts +1 -1
  207. src/engine-components/TransformGizmo.ts +6 -6
  208. src/engine/extensions/usage_tracker.ts +2 -2
  209. src/engine-components/export/usdz/USDZExporter.ts +19 -19
  210. src/engine-components/export/usdz/extensions/USDZText.ts +7 -7
  211. src/engine-components/export/usdz/extensions/USDZUI.ts +9 -9
  212. src/engine-components/ui/Utils.ts +3 -3
  213. src/engine-components/js-extensions/Vector.ts +2 -2
  214. src/engine-components/VideoPlayer.ts +9 -9
  215. src/engine-components/postprocessing/Effects/Vignette.ts +4 -4
  216. src/engine-components/Voip.ts +5 -5
  217. src/engine-components/postprocessing/Volume.ts +9 -10
  218. src/engine-components/postprocessing/VolumeParameter.ts +1 -1
  219. src/engine-components/postprocessing/VolumeProfile.ts +3 -3
  220. src/engine-schemes/vr-user-state-buffer.ts +2 -2
  221. src/engine-components/webxr/WebARCameraBackground.ts +4 -4
  222. src/engine-components/webxr/WebARSessionRoot.ts +4 -4
  223. src/engine-components/webxr/WebXR.ts +16 -16
  224. src/engine-components/webxr/WebXRAvatar.ts +11 -11
  225. src/engine-components/webxr/WebXRController.ts +14 -14
  226. src/engine-components/webxr/WebXRGrabRendering.ts +6 -6
  227. src/engine-components/webxr/WebXRImageTracking.ts +8 -8
  228. src/engine-components/webxr/WebXRPlaneTracking.ts +7 -7
  229. src/engine-components/webxr/WebXRRig.ts +4 -4
  230. src/engine-components/webxr/WebXRSync.ts +463 -463
  231. src/engine-components/XRFlag.ts +2 -2
  232. src/engine-schemes/api.ts +1 -0
  233. src/engine/codegen/register_types.ts +437 -0
src/engine/codegen/register_types.js DELETED
@@ -1,437 +0,0 @@
1
- import { TypeStore } from "./../engine_typestore"
2
-
3
- // Import types
4
- import { __Ignore } from "../../engine-components/codegen/components";
5
- import { ActionBuilder } from "../../engine-components/export/usdz/extensions/behavior/BehavioursBuilder";
6
- import { ActionCollection } from "../../engine-components/export/usdz/extensions/behavior/Actions";
7
- import { ActionModel } from "../../engine-components/export/usdz/extensions/behavior/BehavioursBuilder";
8
- import { AlignmentConstraint } from "../../engine-components/AlignmentConstraint";
9
- import { Animation } from "../../engine-components/Animation";
10
- import { AnimationCurve } from "../../engine-components/AnimationCurve";
11
- import { AnimationExtension } from "../../engine-components/export/usdz/extensions/Animation";
12
- import { AnimationTrackHandler } from "../../engine-components/timeline/TimelineTracks";
13
- import { Animator } from "../../engine-components/Animator";
14
- import { AnimatorController } from "../../engine-components/AnimatorController";
15
- import { Antialiasing } from "../../engine-components/postprocessing/Effects/Antialiasing";
16
- import { AttachedObject } from "../../engine-components/webxr/WebXRController";
17
- import { AudioExtension } from "../../engine-components/export/usdz/extensions/behavior/AudioExtension";
18
- import { AudioListener } from "../../engine-components/AudioListener";
19
- import { AudioSource } from "../../engine-components/AudioSource";
20
- import { AudioTrackHandler } from "../../engine-components/timeline/TimelineTracks";
21
- import { Avatar_Brain_LookAt } from "../../engine-components/avatar/Avatar_Brain_LookAt";
22
- import { Avatar_MouthShapes } from "../../engine-components/avatar/Avatar_MouthShapes";
23
- import { Avatar_MustacheShake } from "../../engine-components/avatar/Avatar_MustacheShake";
24
- import { Avatar_POI } from "../../engine-components/avatar/Avatar_Brain_LookAt";
25
- import { AvatarBlink_Simple } from "../../engine-components/avatar/AvatarBlink_Simple";
26
- import { AvatarEyeLook_Rotation } from "../../engine-components/avatar/AvatarEyeLook_Rotation";
27
- import { AvatarLoader } from "../../engine-components/AvatarLoader";
28
- import { AvatarMarker } from "../../engine-components/webxr/WebXRAvatar";
29
- import { AvatarModel } from "../../engine-components/AvatarLoader";
30
- import { AxesHelper } from "../../engine-components/AxesHelper";
31
- import { BaseUIComponent } from "../../engine-components/ui/BaseUIComponent";
32
- import { BasicIKConstraint } from "../../engine-components/BasicIKConstraint";
33
- import { BehaviorExtension } from "../../engine-components/export/usdz/extensions/behavior/Behaviour";
34
- import { BehaviorModel } from "../../engine-components/export/usdz/extensions/behavior/BehavioursBuilder";
35
- import { Behaviour } from "../../engine-components/Component";
36
- import { Bloom } from "../../engine-components/postprocessing/Effects/Bloom";
37
- import { BoxCollider } from "../../engine-components/Collider";
38
- import { BoxGizmo } from "../../engine-components/Gizmos";
39
- import { BoxHelperComponent } from "../../engine-components/BoxHelperComponent";
40
- import { Button } from "../../engine-components/ui/Button";
41
- import { CallInfo } from "../../engine-components/EventList";
42
- import { Camera } from "../../engine-components/Camera";
43
- import { Canvas } from "../../engine-components/ui/Canvas";
44
- import { CanvasGroup } from "../../engine-components/ui/CanvasGroup";
45
- import { CapsuleCollider } from "../../engine-components/Collider";
46
- import { ChangeMaterialOnClick } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
47
- import { ChangeTransformOnClick } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
48
- import { CharacterController } from "../../engine-components/CharacterController";
49
- import { CharacterControllerInput } from "../../engine-components/CharacterController";
50
- import { ChromaticAberration } from "../../engine-components/postprocessing/Effects/ChromaticAberration";
51
- import { Collider } from "../../engine-components/Collider";
52
- import { ColorAdjustments } from "../../engine-components/postprocessing/Effects/ColorAdjustments";
53
- import { ColorBySpeedModule } from "../../engine-components/ParticleSystemModules";
54
- import { ColorOverLifetimeModule } from "../../engine-components/ParticleSystemModules";
55
- import { Component } from "../../engine-components/Component";
56
- import { ControlTrackHandler } from "../../engine-components/timeline/TimelineTracks";
57
- import { CustomBranding } from "../../engine-components/export/usdz/USDZExporter";
58
- import { Deletable } from "../../engine-components/DeleteBox";
59
- import { DeleteBox } from "../../engine-components/DeleteBox";
60
- import { DepthOfField } from "../../engine-components/postprocessing/Effects/DepthOfField";
61
- import { DeviceFlag } from "../../engine-components/DeviceFlag";
62
- import { DocumentExtension } from "../../engine-components/export/usdz/extensions/DocumentExtension";
63
- import { DragControls } from "../../engine-components/DragControls";
64
- import { DropListener } from "../../engine-components/DropListener";
65
- import { Duplicatable } from "../../engine-components/Duplicatable";
66
- import { EmissionModule } from "../../engine-components/ParticleSystemModules";
67
- import { EmphasizeOnClick } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
68
- import { EventList } from "../../engine-components/EventList";
69
- import { EventListEvent } from "../../engine-components/EventList";
70
- import { EventSystem } from "../../engine-components/ui/EventSystem";
71
- import { EventTrigger } from "../../engine-components/EventTrigger";
72
- import { FieldWithDefault } from "../../engine-components/Renderer";
73
- import { FixedJoint } from "../../engine-components/Joints";
74
- import { FlyControls } from "../../engine-components/FlyControls";
75
- import { Fog } from "../../engine-components/Fog";
76
- import { GltfExport } from "../../engine-components/export/gltf/GltfExport";
77
- import { GltfExportBox } from "../../engine-components/export/gltf/GltfExport";
78
- import { Gradient } from "../../engine-components/ParticleSystemModules";
79
- import { Graphic } from "../../engine-components/ui/Graphic";
80
- import { GraphicRaycaster } from "../../engine-components/ui/Raycaster";
81
- import { GridHelper } from "../../engine-components/GridHelper";
82
- import { GridLayoutGroup } from "../../engine-components/ui/Layout";
83
- import { GroundProjectedEnv } from "../../engine-components/GroundProjection";
84
- import { GroupActionModel } from "../../engine-components/export/usdz/extensions/behavior/BehavioursBuilder";
85
- import { HideOnStart } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
86
- import { HingeJoint } from "../../engine-components/Joints";
87
- import { HorizontalLayoutGroup } from "../../engine-components/ui/Layout";
88
- import { Image } from "../../engine-components/ui/Image";
89
- import { InheritVelocityModule } from "../../engine-components/ParticleSystemModules";
90
- import { InputField } from "../../engine-components/ui/InputField";
91
- import { Interactable } from "../../engine-components/Interactable";
92
- import { Light } from "../../engine-components/Light";
93
- import { LimitVelocityOverLifetimeModule } from "../../engine-components/ParticleSystemModules";
94
- import { LODGroup } from "../../engine-components/LODGroup";
95
- import { LODModel } from "../../engine-components/LODGroup";
96
- import { LogStats } from "../../engine-components/debug/LogStats";
97
- import { LookAt } from "../../engine-components/utils/LookAt";
98
- import { LookAtConstraint } from "../../engine-components/LookAtConstraint";
99
- import { MainModule } from "../../engine-components/ParticleSystemModules";
100
- import { MaskableGraphic } from "../../engine-components/ui/Graphic";
101
- import { MeshCollider } from "../../engine-components/Collider";
102
- import { MeshRenderer } from "../../engine-components/Renderer";
103
- import { MinMaxCurve } from "../../engine-components/ParticleSystemModules";
104
- import { MinMaxGradient } from "../../engine-components/ParticleSystemModules";
105
- import { NestedGltf } from "../../engine-components/NestedGltf";
106
- import { Networking } from "../../engine-components/Networking";
107
- import { NoiseModule } from "../../engine-components/ParticleSystemModules";
108
- import { ObjectRaycaster } from "../../engine-components/ui/Raycaster";
109
- import { OffsetConstraint } from "../../engine-components/OffsetConstraint";
110
- import { OpenURL } from "../../engine-components/utils/OpenURL";
111
- import { OrbitControls } from "../../engine-components/OrbitControls";
112
- import { Outline } from "../../engine-components/ui/Outline";
113
- import { Padding } from "../../engine-components/ui/Layout";
114
- import { ParticleBurst } from "../../engine-components/ParticleSystemModules";
115
- import { ParticleSubEmitter } from "../../engine-components/ParticleSystemSubEmitter";
116
- import { ParticleSystem } from "../../engine-components/ParticleSystem";
117
- import { ParticleSystemRenderer } from "../../engine-components/ParticleSystem";
118
- import { PixelationEffect } from "../../engine-components/postprocessing/Effects/Pixelation";
119
- import { PlayableDirector } from "../../engine-components/timeline/PlayableDirector";
120
- import { PlayAnimationOnClick } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
121
- import { PlayAudioOnClick } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
122
- import { PlayerColor } from "../../engine-components/PlayerColor";
123
- import { PlayerState } from "../../engine-components-experimental/networking/PlayerSync";
124
- import { PlayerSync } from "../../engine-components-experimental/networking/PlayerSync";
125
- import { PointerEventData } from "../../engine-components/ui/PointerEvents";
126
- import { PostProcessingHandler } from "../../engine-components/postprocessing/PostProcessingHandler";
127
- import { PreliminaryAction } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
128
- import { PreliminaryTrigger } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
129
- import { PresentationMode } from "../../engine-components-experimental/Presentation";
130
- import { RawImage } from "../../engine-components/ui/Image";
131
- import { Raycaster } from "../../engine-components/ui/Raycaster";
132
- import { Rect } from "../../engine-components/ui/RectTransform";
133
- import { RectTransform } from "../../engine-components/ui/RectTransform";
134
- import { ReflectionProbe } from "../../engine-components/ReflectionProbe";
135
- import { RegisteredAnimationInfo } from "../../engine-components/export/usdz/extensions/Animation";
136
- import { RemoteSkybox } from "../../engine-components/Skybox";
137
- import { Renderer } from "../../engine-components/Renderer";
138
- import { RendererLightmap } from "../../engine-components/RendererLightmap";
139
- import { RGBAColor } from "../../engine-components/js-extensions/RGBAColor";
140
- import { Rigidbody } from "../../engine-components/RigidBody";
141
- import { RotationBySpeedModule } from "../../engine-components/ParticleSystemModules";
142
- import { RotationOverLifetimeModule } from "../../engine-components/ParticleSystemModules";
143
- import { SceneSwitcher } from "../../engine-components/SceneSwitcher";
144
- import { ScreenCapture } from "../../engine-components/ScreenCapture";
145
- import { ScreenSpaceAmbientOcclusion } from "../../engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion";
146
- import { ScreenSpaceAmbientOcclusionN8 } from "../../engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8";
147
- import { SetActiveOnClick } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
148
- import { ShadowCatcher } from "../../engine-components/ShadowCatcher";
149
- import { ShapeModule } from "../../engine-components/ParticleSystemModules";
150
- import { SignalAsset } from "../../engine-components/timeline/SignalAsset";
151
- import { SignalReceiver } from "../../engine-components/timeline/SignalAsset";
152
- import { SignalReceiverEvent } from "../../engine-components/timeline/SignalAsset";
153
- import { SignalTrackHandler } from "../../engine-components/timeline/TimelineTracks";
154
- import { Size } from "../../engine-components/ui/RectTransform";
155
- import { SizeBySpeedModule } from "../../engine-components/ParticleSystemModules";
156
- import { SizeOverLifetimeModule } from "../../engine-components/ParticleSystemModules";
157
- import { SkinnedMeshRenderer } from "../../engine-components/Renderer";
158
- import { SmoothFollow } from "../../engine-components/SmoothFollow";
159
- import { SpatialHtml } from "../../engine-components/ui/SpatialHtml";
160
- import { SpatialTrigger } from "../../engine-components/SpatialTrigger";
161
- import { SpatialTriggerReceiver } from "../../engine-components/SpatialTrigger";
162
- import { SpectatorCamera } from "../../engine-components/SpectatorCamera";
163
- import { SphereCollider } from "../../engine-components/Collider";
164
- import { Sprite } from "../../engine-components/SpriteRenderer";
165
- import { SpriteData } from "../../engine-components/SpriteRenderer";
166
- import { SpriteRenderer } from "../../engine-components/SpriteRenderer";
167
- import { SpriteSheet } from "../../engine-components/SpriteRenderer";
168
- import { SubEmitterSystem } from "../../engine-components/ParticleSystem";
169
- import { SyncedCamera } from "../../engine-components/SyncedCamera";
170
- import { SyncedRoom } from "../../engine-components/SyncedRoom";
171
- import { SyncedTransform } from "../../engine-components/SyncedTransform";
172
- import { TapGestureTrigger } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
173
- import { TeleportTarget } from "../../engine-components/webxr/WebXRController";
174
- import { TestRunner } from "../../engine-components/TestRunner";
175
- import { TestSimulateUserData } from "../../engine-components/TestRunner";
176
- import { Text } from "../../engine-components/ui/Text";
177
- import { TextBuilder } from "../../engine-components/export/usdz/extensions/USDZText";
178
- import { TextExtension } from "../../engine-components/export/usdz/extensions/USDZText";
179
- import { TextureSheetAnimationModule } from "../../engine-components/ParticleSystemModules";
180
- import { TiltShiftEffect } from "../../engine-components/postprocessing/Effects/TiltShiftEffect";
181
- import { ToneMapping } from "../../engine-components/postprocessing/Effects/Tonemapping";
182
- import { TrailModule } from "../../engine-components/ParticleSystemModules";
183
- import { TransformData } from "../../engine-components/export/usdz/extensions/Animation";
184
- import { TransformGizmo } from "../../engine-components/TransformGizmo";
185
- import { TriggerBuilder } from "../../engine-components/export/usdz/extensions/behavior/BehavioursBuilder";
186
- import { TriggerModel } from "../../engine-components/export/usdz/extensions/behavior/BehavioursBuilder";
187
- import { UIRaycastUtils } from "../../engine-components/ui/RaycastUtils";
188
- import { UIRootComponent } from "../../engine-components/ui/BaseUIComponent";
189
- import { UsageMarker } from "../../engine-components/Interactable";
190
- import { USDZExporter } from "../../engine-components/export/usdz/USDZExporter";
191
- import { USDZText } from "../../engine-components/export/usdz/extensions/USDZText";
192
- import { USDZUIExtension } from "../../engine-components/export/usdz/extensions/USDZUI";
193
- import { VariantAction } from "../../engine-components/export/usdz/extensions/behavior/Actions";
194
- import { VelocityOverLifetimeModule } from "../../engine-components/ParticleSystemModules";
195
- import { VerticalLayoutGroup } from "../../engine-components/ui/Layout";
196
- import { VideoPlayer } from "../../engine-components/VideoPlayer";
197
- import { Vignette } from "../../engine-components/postprocessing/Effects/Vignette";
198
- import { VisibilityAction } from "../../engine-components/export/usdz/extensions/behavior/BehaviourComponents";
199
- import { Voip } from "../../engine-components/Voip";
200
- import { Volume } from "../../engine-components/postprocessing/Volume";
201
- import { VolumeParameter } from "../../engine-components/postprocessing/VolumeParameter";
202
- import { VolumeProfile } from "../../engine-components/postprocessing/VolumeProfile";
203
- import { VRUserState } from "../../engine-components/webxr/WebXRSync";
204
- import { WebAR } from "../../engine-components/webxr/WebXR";
205
- import { WebARCameraBackground } from "../../engine-components/webxr/WebARCameraBackground";
206
- import { WebARSessionRoot } from "../../engine-components/webxr/WebARSessionRoot";
207
- import { WebXR } from "../../engine-components/webxr/WebXR";
208
- import { WebXRAvatar } from "../../engine-components/webxr/WebXRAvatar";
209
- import { WebXRController } from "../../engine-components/webxr/WebXRController";
210
- import { WebXRImageTracking } from "../../engine-components/webxr/WebXRImageTracking";
211
- import { WebXRImageTrackingModel } from "../../engine-components/webxr/WebXRImageTracking";
212
- import { WebXRPlaneTracking } from "../../engine-components/webxr/WebXRPlaneTracking";
213
- import { WebXRSync } from "../../engine-components/webxr/WebXRSync";
214
- import { WebXRTrackedImage } from "../../engine-components/webxr/WebXRImageTracking";
215
- import { XRFlag } from "../../engine-components/XRFlag";
216
- import { XRGrabModel } from "../../engine-components/webxr/WebXRGrabRendering";
217
- import { XRGrabRendering } from "../../engine-components/webxr/WebXRGrabRendering";
218
- import { XRRig } from "../../engine-components/webxr/WebXRRig";
219
- import { XRState } from "../../engine-components/XRFlag";
220
-
221
- // Register types
222
- TypeStore.add("__Ignore", __Ignore);
223
- TypeStore.add("ActionBuilder", ActionBuilder);
224
- TypeStore.add("ActionCollection", ActionCollection);
225
- TypeStore.add("ActionModel", ActionModel);
226
- TypeStore.add("AlignmentConstraint", AlignmentConstraint);
227
- TypeStore.add("Animation", Animation);
228
- TypeStore.add("AnimationCurve", AnimationCurve);
229
- TypeStore.add("AnimationExtension", AnimationExtension);
230
- TypeStore.add("AnimationTrackHandler", AnimationTrackHandler);
231
- TypeStore.add("Animator", Animator);
232
- TypeStore.add("AnimatorController", AnimatorController);
233
- TypeStore.add("Antialiasing", Antialiasing);
234
- TypeStore.add("AttachedObject", AttachedObject);
235
- TypeStore.add("AudioExtension", AudioExtension);
236
- TypeStore.add("AudioListener", AudioListener);
237
- TypeStore.add("AudioSource", AudioSource);
238
- TypeStore.add("AudioTrackHandler", AudioTrackHandler);
239
- TypeStore.add("Avatar_Brain_LookAt", Avatar_Brain_LookAt);
240
- TypeStore.add("Avatar_MouthShapes", Avatar_MouthShapes);
241
- TypeStore.add("Avatar_MustacheShake", Avatar_MustacheShake);
242
- TypeStore.add("Avatar_POI", Avatar_POI);
243
- TypeStore.add("AvatarBlink_Simple", AvatarBlink_Simple);
244
- TypeStore.add("AvatarEyeLook_Rotation", AvatarEyeLook_Rotation);
245
- TypeStore.add("AvatarLoader", AvatarLoader);
246
- TypeStore.add("AvatarMarker", AvatarMarker);
247
- TypeStore.add("AvatarModel", AvatarModel);
248
- TypeStore.add("AxesHelper", AxesHelper);
249
- TypeStore.add("BaseUIComponent", BaseUIComponent);
250
- TypeStore.add("BasicIKConstraint", BasicIKConstraint);
251
- TypeStore.add("BehaviorExtension", BehaviorExtension);
252
- TypeStore.add("BehaviorModel", BehaviorModel);
253
- TypeStore.add("Behaviour", Behaviour);
254
- TypeStore.add("Bloom", Bloom);
255
- TypeStore.add("BoxCollider", BoxCollider);
256
- TypeStore.add("BoxGizmo", BoxGizmo);
257
- TypeStore.add("BoxHelperComponent", BoxHelperComponent);
258
- TypeStore.add("Button", Button);
259
- TypeStore.add("CallInfo", CallInfo);
260
- TypeStore.add("Camera", Camera);
261
- TypeStore.add("Canvas", Canvas);
262
- TypeStore.add("CanvasGroup", CanvasGroup);
263
- TypeStore.add("CapsuleCollider", CapsuleCollider);
264
- TypeStore.add("ChangeMaterialOnClick", ChangeMaterialOnClick);
265
- TypeStore.add("ChangeTransformOnClick", ChangeTransformOnClick);
266
- TypeStore.add("CharacterController", CharacterController);
267
- TypeStore.add("CharacterControllerInput", CharacterControllerInput);
268
- TypeStore.add("ChromaticAberration", ChromaticAberration);
269
- TypeStore.add("Collider", Collider);
270
- TypeStore.add("ColorAdjustments", ColorAdjustments);
271
- TypeStore.add("ColorBySpeedModule", ColorBySpeedModule);
272
- TypeStore.add("ColorOverLifetimeModule", ColorOverLifetimeModule);
273
- TypeStore.add("Component", Component);
274
- TypeStore.add("ControlTrackHandler", ControlTrackHandler);
275
- TypeStore.add("CustomBranding", CustomBranding);
276
- TypeStore.add("Deletable", Deletable);
277
- TypeStore.add("DeleteBox", DeleteBox);
278
- TypeStore.add("DepthOfField", DepthOfField);
279
- TypeStore.add("DeviceFlag", DeviceFlag);
280
- TypeStore.add("DocumentExtension", DocumentExtension);
281
- TypeStore.add("DragControls", DragControls);
282
- TypeStore.add("DropListener", DropListener);
283
- TypeStore.add("Duplicatable", Duplicatable);
284
- TypeStore.add("EmissionModule", EmissionModule);
285
- TypeStore.add("EmphasizeOnClick", EmphasizeOnClick);
286
- TypeStore.add("EventList", EventList);
287
- TypeStore.add("EventListEvent", EventListEvent);
288
- TypeStore.add("EventSystem", EventSystem);
289
- TypeStore.add("EventTrigger", EventTrigger);
290
- TypeStore.add("FieldWithDefault", FieldWithDefault);
291
- TypeStore.add("FixedJoint", FixedJoint);
292
- TypeStore.add("FlyControls", FlyControls);
293
- TypeStore.add("Fog", Fog);
294
- TypeStore.add("GltfExport", GltfExport);
295
- TypeStore.add("GltfExportBox", GltfExportBox);
296
- TypeStore.add("Gradient", Gradient);
297
- TypeStore.add("Graphic", Graphic);
298
- TypeStore.add("GraphicRaycaster", GraphicRaycaster);
299
- TypeStore.add("GridHelper", GridHelper);
300
- TypeStore.add("GridLayoutGroup", GridLayoutGroup);
301
- TypeStore.add("GroundProjectedEnv", GroundProjectedEnv);
302
- TypeStore.add("GroupActionModel", GroupActionModel);
303
- TypeStore.add("HideOnStart", HideOnStart);
304
- TypeStore.add("HingeJoint", HingeJoint);
305
- TypeStore.add("HorizontalLayoutGroup", HorizontalLayoutGroup);
306
- TypeStore.add("Image", Image);
307
- TypeStore.add("InheritVelocityModule", InheritVelocityModule);
308
- TypeStore.add("InputField", InputField);
309
- TypeStore.add("Interactable", Interactable);
310
- TypeStore.add("Light", Light);
311
- TypeStore.add("LimitVelocityOverLifetimeModule", LimitVelocityOverLifetimeModule);
312
- TypeStore.add("LODGroup", LODGroup);
313
- TypeStore.add("LODModel", LODModel);
314
- TypeStore.add("LogStats", LogStats);
315
- TypeStore.add("LookAt", LookAt);
316
- TypeStore.add("LookAtConstraint", LookAtConstraint);
317
- TypeStore.add("MainModule", MainModule);
318
- TypeStore.add("MaskableGraphic", MaskableGraphic);
319
- TypeStore.add("MeshCollider", MeshCollider);
320
- TypeStore.add("MeshRenderer", MeshRenderer);
321
- TypeStore.add("MinMaxCurve", MinMaxCurve);
322
- TypeStore.add("MinMaxGradient", MinMaxGradient);
323
- TypeStore.add("NestedGltf", NestedGltf);
324
- TypeStore.add("Networking", Networking);
325
- TypeStore.add("NoiseModule", NoiseModule);
326
- TypeStore.add("ObjectRaycaster", ObjectRaycaster);
327
- TypeStore.add("OffsetConstraint", OffsetConstraint);
328
- TypeStore.add("OpenURL", OpenURL);
329
- TypeStore.add("OrbitControls", OrbitControls);
330
- TypeStore.add("Outline", Outline);
331
- TypeStore.add("Padding", Padding);
332
- TypeStore.add("ParticleBurst", ParticleBurst);
333
- TypeStore.add("ParticleSubEmitter", ParticleSubEmitter);
334
- TypeStore.add("ParticleSystem", ParticleSystem);
335
- TypeStore.add("ParticleSystemRenderer", ParticleSystemRenderer);
336
- TypeStore.add("PixelationEffect", PixelationEffect);
337
- TypeStore.add("PlayableDirector", PlayableDirector);
338
- TypeStore.add("PlayAnimationOnClick", PlayAnimationOnClick);
339
- TypeStore.add("PlayAudioOnClick", PlayAudioOnClick);
340
- TypeStore.add("PlayerColor", PlayerColor);
341
- TypeStore.add("PlayerState", PlayerState);
342
- TypeStore.add("PlayerSync", PlayerSync);
343
- TypeStore.add("PointerEventData", PointerEventData);
344
- TypeStore.add("PostProcessingHandler", PostProcessingHandler);
345
- TypeStore.add("PreliminaryAction", PreliminaryAction);
346
- TypeStore.add("PreliminaryTrigger", PreliminaryTrigger);
347
- TypeStore.add("PresentationMode", PresentationMode);
348
- TypeStore.add("RawImage", RawImage);
349
- TypeStore.add("Raycaster", Raycaster);
350
- TypeStore.add("Rect", Rect);
351
- TypeStore.add("RectTransform", RectTransform);
352
- TypeStore.add("ReflectionProbe", ReflectionProbe);
353
- TypeStore.add("RegisteredAnimationInfo", RegisteredAnimationInfo);
354
- TypeStore.add("RemoteSkybox", RemoteSkybox);
355
- TypeStore.add("Renderer", Renderer);
356
- TypeStore.add("RendererLightmap", RendererLightmap);
357
- TypeStore.add("RGBAColor", RGBAColor);
358
- TypeStore.add("Rigidbody", Rigidbody);
359
- TypeStore.add("RotationBySpeedModule", RotationBySpeedModule);
360
- TypeStore.add("RotationOverLifetimeModule", RotationOverLifetimeModule);
361
- TypeStore.add("SceneSwitcher", SceneSwitcher);
362
- TypeStore.add("ScreenCapture", ScreenCapture);
363
- TypeStore.add("ScreenSpaceAmbientOcclusion", ScreenSpaceAmbientOcclusion);
364
- TypeStore.add("ScreenSpaceAmbientOcclusionN8", ScreenSpaceAmbientOcclusionN8);
365
- TypeStore.add("SetActiveOnClick", SetActiveOnClick);
366
- TypeStore.add("ShadowCatcher", ShadowCatcher);
367
- TypeStore.add("ShapeModule", ShapeModule);
368
- TypeStore.add("SignalAsset", SignalAsset);
369
- TypeStore.add("SignalReceiver", SignalReceiver);
370
- TypeStore.add("SignalReceiverEvent", SignalReceiverEvent);
371
- TypeStore.add("SignalTrackHandler", SignalTrackHandler);
372
- TypeStore.add("Size", Size);
373
- TypeStore.add("SizeBySpeedModule", SizeBySpeedModule);
374
- TypeStore.add("SizeOverLifetimeModule", SizeOverLifetimeModule);
375
- TypeStore.add("SkinnedMeshRenderer", SkinnedMeshRenderer);
376
- TypeStore.add("SmoothFollow", SmoothFollow);
377
- TypeStore.add("SpatialHtml", SpatialHtml);
378
- TypeStore.add("SpatialTrigger", SpatialTrigger);
379
- TypeStore.add("SpatialTriggerReceiver", SpatialTriggerReceiver);
380
- TypeStore.add("SpectatorCamera", SpectatorCamera);
381
- TypeStore.add("SphereCollider", SphereCollider);
382
- TypeStore.add("Sprite", Sprite);
383
- TypeStore.add("SpriteData", SpriteData);
384
- TypeStore.add("SpriteRenderer", SpriteRenderer);
385
- TypeStore.add("SpriteSheet", SpriteSheet);
386
- TypeStore.add("SubEmitterSystem", SubEmitterSystem);
387
- TypeStore.add("SyncedCamera", SyncedCamera);
388
- TypeStore.add("SyncedRoom", SyncedRoom);
389
- TypeStore.add("SyncedTransform", SyncedTransform);
390
- TypeStore.add("TapGestureTrigger", TapGestureTrigger);
391
- TypeStore.add("TeleportTarget", TeleportTarget);
392
- TypeStore.add("TestRunner", TestRunner);
393
- TypeStore.add("TestSimulateUserData", TestSimulateUserData);
394
- TypeStore.add("Text", Text);
395
- TypeStore.add("TextBuilder", TextBuilder);
396
- TypeStore.add("TextExtension", TextExtension);
397
- TypeStore.add("TextureSheetAnimationModule", TextureSheetAnimationModule);
398
- TypeStore.add("TiltShiftEffect", TiltShiftEffect);
399
- TypeStore.add("ToneMapping", ToneMapping);
400
- TypeStore.add("TrailModule", TrailModule);
401
- TypeStore.add("TransformData", TransformData);
402
- TypeStore.add("TransformGizmo", TransformGizmo);
403
- TypeStore.add("TriggerBuilder", TriggerBuilder);
404
- TypeStore.add("TriggerModel", TriggerModel);
405
- TypeStore.add("UIRaycastUtils", UIRaycastUtils);
406
- TypeStore.add("UIRootComponent", UIRootComponent);
407
- TypeStore.add("UsageMarker", UsageMarker);
408
- TypeStore.add("USDZExporter", USDZExporter);
409
- TypeStore.add("USDZText", USDZText);
410
- TypeStore.add("USDZUIExtension", USDZUIExtension);
411
- TypeStore.add("VariantAction", VariantAction);
412
- TypeStore.add("VelocityOverLifetimeModule", VelocityOverLifetimeModule);
413
- TypeStore.add("VerticalLayoutGroup", VerticalLayoutGroup);
414
- TypeStore.add("VideoPlayer", VideoPlayer);
415
- TypeStore.add("Vignette", Vignette);
416
- TypeStore.add("VisibilityAction", VisibilityAction);
417
- TypeStore.add("Voip", Voip);
418
- TypeStore.add("Volume", Volume);
419
- TypeStore.add("VolumeParameter", VolumeParameter);
420
- TypeStore.add("VolumeProfile", VolumeProfile);
421
- TypeStore.add("VRUserState", VRUserState);
422
- TypeStore.add("WebAR", WebAR);
423
- TypeStore.add("WebARCameraBackground", WebARCameraBackground);
424
- TypeStore.add("WebARSessionRoot", WebARSessionRoot);
425
- TypeStore.add("WebXR", WebXR);
426
- TypeStore.add("WebXRAvatar", WebXRAvatar);
427
- TypeStore.add("WebXRController", WebXRController);
428
- TypeStore.add("WebXRImageTracking", WebXRImageTracking);
429
- TypeStore.add("WebXRImageTrackingModel", WebXRImageTrackingModel);
430
- TypeStore.add("WebXRPlaneTracking", WebXRPlaneTracking);
431
- TypeStore.add("WebXRSync", WebXRSync);
432
- TypeStore.add("WebXRTrackedImage", WebXRTrackedImage);
433
- TypeStore.add("XRFlag", XRFlag);
434
- TypeStore.add("XRGrabModel", XRGrabModel);
435
- TypeStore.add("XRGrabRendering", XRGrabRendering);
436
- TypeStore.add("XRRig", XRRig);
437
- TypeStore.add("XRState", XRState);
src/engine-components/export/usdz/extensions/behavior/Actions.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Object3D, Matrix4, Material, BufferGeometry } from "three";
2
- import { ActionBuilder, ActionModel } from "./BehavioursBuilder";
3
- import { USDObject, USDDocument } from "../../ThreeUSDZExporter";
2
+ import { ActionBuilder, ActionModel } from "./BehavioursBuilder.js";
3
+ import { USDObject, USDDocument } from "../../ThreeUSDZExporter.js";
4
4
 
5
5
  export abstract class DocumentAction {
6
6
 
src/engine-components/AlignmentConstraint.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Behaviour, GameObject } from "./Component";
2
- import * as utils from "./../engine/engine_three_utils";
1
+ import { Behaviour, GameObject } from "./Component.js";
2
+ import * as utils from "./../engine/engine_three_utils.js";
3
3
  import { Vector3 } from "three";
4
- import { serializable } from "../engine/engine_serialization_decorator";
4
+ import { serializable } from "../engine/engine_serialization_decorator.js";
5
5
 
6
6
  export class AlignmentConstraint extends Behaviour {
7
7
 
src/engine-components/Animation.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { Behaviour } from "./Component";
1
+ import { Behaviour } from "./Component.js";
2
2
  import { AnimationAction, AnimationClip, AnimationMixer, LoopOnce, LoopRepeat } from "three";
3
- import { MixerEvent } from "./Animator";
4
- import { serializable } from "../engine/engine_serialization_decorator";
5
- import { Mathf } from "../engine/engine_math";
6
- import { Vec2 } from "../engine/engine_types";
7
- import { getParam } from "../engine/engine_utils";
3
+ import { MixerEvent } from "./Animator.js";
4
+ import { serializable } from "../engine/engine_serialization_decorator.js";
5
+ import { Mathf } from "../engine/engine_math.js";
6
+ import { Vec2 } from "../engine/engine_types.js";
7
+ import { getParam } from "../engine/engine_utils.js";
8
8
 
9
9
  const debug = getParam("debuganimation");
10
10
 
src/engine-components/export/usdz/extensions/Animation.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { GameObject } from "../../../Component";
2
- import { getParam } from "../../../../engine/engine_utils";
1
+ import { GameObject } from "../../../Component.js";
2
+ import { getParam } from "../../../../engine/engine_utils.js";
3
3
 
4
- import { USDObject, buildMatrix } from "../ThreeUSDZExporter";
5
- import { IUSDExporterExtension } from "../Extension";
4
+ import { USDObject, buildMatrix } from "../ThreeUSDZExporter.js";
5
+ import { IUSDExporterExtension } from "../Extension.js";
6
6
 
7
7
  import { Object3D, Matrix4, Vector3, Quaternion, Interpolant, AnimationClip, KeyframeTrack } from "three";
8
8
 
src/engine-components/AnimationCurve.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Mathf } from "../engine/engine_math";
2
- import { serializable } from "../engine/engine_serialization_decorator";
1
+ import { Mathf } from "../engine/engine_math.js";
2
+ import { serializable } from "../engine/engine_serialization_decorator.js";
3
3
 
4
4
  class Keyframe {
5
5
  @serializable()
src/engine-components/AnimationUtils.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { GLTF } from "three/examples/jsm/loaders/GLTFLoader.js";
2
- import { ContextEvent, ContextRegistry } from "../engine/engine_context_registry";
3
- import { addNewComponent } from "../engine/engine_components";
4
- import { Animator } from "./Animator";
5
- import { Animation } from "./Animation";
6
- import { GameObject } from "./Component";
7
- import { PlayableDirector } from "./timeline/PlayableDirector";
2
+ import { ContextEvent, ContextRegistry } from "../engine/engine_context_registry.js";
3
+ import { addNewComponent } from "../engine/engine_components.js";
4
+ import { Animator } from "./Animator.js";
5
+ import { Animation } from "./Animation.js";
6
+ import { GameObject } from "./Component.js";
7
+ import { PlayableDirector } from "./timeline/PlayableDirector.js";
8
8
  import { Object3D } from "three";
9
9
 
10
10
 
@@ -14,22 +14,24 @@
14
14
  * @param obj The object to mark
15
15
  * @param isAnimated Whether the object is animated or not
16
16
  */
17
- export function setObjectAnimated(obj: Object3D, isAnimated: boolean) {
17
+ export function setObjectAnimated(obj: Object3D, animatedBy: object, isAnimated: boolean) {
18
18
  if (obj[$objectAnimationKey] === undefined) {
19
19
  if (!isAnimated) return;
20
- obj[$objectAnimationKey] = 1;
20
+ obj[$objectAnimationKey] = new Set<object>();
21
21
  }
22
- else {
23
- if (isAnimated)
24
- obj[$objectAnimationKey] += 1;
25
- else if (obj[$objectAnimationKey] > 0)
26
- obj[$objectAnimationKey] -= 1;
22
+
23
+ const set = obj[$objectAnimationKey] as Set<object>;
24
+ if (isAnimated) {
25
+ set.add(animatedBy);
27
26
  }
27
+ else if (set.has(animatedBy))
28
+ set.delete(animatedBy);
28
29
  }
29
30
 
30
31
  /** Get is the object is currently animated. Currently used by the Animator to check if a timeline animationtrack is actively animating an object */
31
32
  export function getObjectAnimated(obj: Object3D): boolean {
32
- return obj[$objectAnimationKey] !== undefined && obj[$objectAnimationKey] > 0;
33
+ const set = obj[$objectAnimationKey] as Set<object>;
34
+ return set !== undefined && set.size > 0;
33
35
  }
34
36
 
35
37
  ContextRegistry.registerCallback(ContextEvent.ContextCreated, args => {
src/engine-components/export/usdz/utils/animationutils.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Animator } from "../../../Animator";
1
+ import { Animator } from "../../../Animator.js";
2
2
  import { Object3D, Color, AnimationClip, KeyframeTrack } from "three";
3
- import { AnimationExtension } from "../extensions/Animation";
4
- import { GameObject } from "../../../Component";
5
- import { getParam } from "../../../../engine/engine_utils";
3
+ import { AnimationExtension } from "../extensions/Animation.js";
4
+ import { GameObject } from "../../../Component.js";
5
+ import { getParam } from "../../../../engine/engine_utils.js";
6
6
 
7
7
  const debug = getParam("debugusdz");
8
8
 
src/engine-components/Animator.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { Behaviour } from "./Component";
1
+ import { Behaviour } from "./Component.js";
2
2
  import { AnimationActionLoopStyles, AnimationAction, AnimationMixer } from "three";
3
- import { getParam } from "../engine/engine_utils";
4
- import { AnimatorControllerModel } from "../engine/extensions/NEEDLE_animator_controller_model";
5
- import { AnimatorController } from "./AnimatorController";
6
- import { serializable } from "../engine/engine_serialization_decorator";
7
- import { Mathf } from "../engine/engine_math";
8
- import { getObjectAnimated } from "./AnimationUtils";
3
+ import { getParam } from "../engine/engine_utils.js";
4
+ import { AnimatorControllerModel } from "../engine/extensions/NEEDLE_animator_controller_model.js";
5
+ import { AnimatorController } from "./AnimatorController.js";
6
+ import { serializable } from "../engine/engine_serialization_decorator.js";
7
+ import { Mathf } from "../engine/engine_math.js";
8
+ import { getObjectAnimated } from "./AnimationUtils.js";
9
9
 
10
10
  const debug = getParam("debuganimator");
11
11
 
@@ -149,8 +149,19 @@
149
149
  if (debug)
150
150
  console.log("ANIMATOR", this.name, this);
151
151
  if (!this.gameObject) return;
152
- if (this.runtimeAnimatorController) {
152
+ this.initializeRuntimeAnimatorController();
153
+ }
154
+
155
+ // Why do we jump through hoops like this? It's because of the PlayableDirector and animation tracks
156
+ // they NEED to use the same mixer when binding/creating the animation clips
157
+ // so when the playable director runs it takes over updating the mixer for blending and then calls the runtimeAnimatorController.update
158
+ // so they effectively share the same mixer. There might be cases still where not the same mixer is being used but then the animation track prints an error in dev
159
+ private _initializeWithRuntimeAnimatorController?: AnimatorController | null;
160
+ initializeRuntimeAnimatorController(force: boolean = false) {
161
+ const shouldRun = (force || this.runtimeAnimatorController !== this._initializeWithRuntimeAnimatorController);
162
+ if (this.runtimeAnimatorController && shouldRun) {
153
163
  const clone = this.runtimeAnimatorController.clone();
164
+ this._initializeWithRuntimeAnimatorController = clone;
154
165
  if (clone) {
155
166
  console.assert(this.runtimeAnimatorController !== clone);
156
167
  this.runtimeAnimatorController = clone;
@@ -169,11 +180,11 @@
169
180
  }
170
181
 
171
182
  onBeforeRender() {
172
- if (getObjectAnimated(this.gameObject)) return;
183
+ const isAnimatedExternally = getObjectAnimated(this.gameObject);
184
+ if (isAnimatedExternally) return;
173
185
 
174
186
  if (this._animatorController) {
175
- this._animatorController.update();
187
+ this._animatorController.update(1);
176
188
  }
177
-
178
189
  }
179
190
  }
src/engine-components/AnimatorController.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { Animator } from "./Animator";
2
- import { AnimatorConditionMode, AnimatorControllerModel, AnimatorControllerParameterType, AnimatorStateInfo, Condition, createMotion, State, StateMachineBehaviour } from "../engine/extensions/NEEDLE_animator_controller_model";
1
+ import { Animator } from "./Animator.js";
2
+ import { AnimatorConditionMode, AnimatorControllerModel, AnimatorControllerParameterType, AnimatorStateInfo, Condition, createMotion, State, StateMachineBehaviour } from "../engine/extensions/NEEDLE_animator_controller_model.js";
3
3
  import { AnimationAction, AnimationClip, AnimationMixer, AxesHelper, Euler, KeyframeTrack, LoopOnce, Object3D, Quaternion, Vector3 } from "three";
4
- import { deepClone, getParam } from "../engine/engine_utils";
5
- import { Context } from "../engine/engine_setup";
6
- import { TypeStore } from "../engine/engine_typestore";
7
- import { assign } from "../engine/engine_serialization_core";
8
- import { Mathf } from "../engine/engine_math";
9
- import { isAnimationAction } from "../engine/engine_three_utils";
10
- import { isDevEnvironment } from "../engine/debug";
4
+ import { deepClone, getParam } from "../engine/engine_utils.js";
5
+ import { Context } from "../engine/engine_setup.js";
6
+ import { TypeStore } from "../engine/engine_typestore.js";
7
+ import { assign } from "../engine/engine_serialization_core.js";
8
+ import { Mathf } from "../engine/engine_math.js";
9
+ import { isAnimationAction } from "../engine/engine_three_utils.js";
10
+ import { isDevEnvironment } from "../engine/debug/index.js";
11
11
 
12
12
  const debug = getParam("debuganimatorcontroller");
13
13
  const debugRootMotion = getParam("debugrootmotion");
@@ -108,16 +108,20 @@
108
108
  animator?: Animator;
109
109
  model: AnimatorControllerModel;
110
110
  get context(): Context | undefined | null { return this.animator?.context; }
111
+ get mixer() {
112
+ return this._mixer;
113
+ }
111
114
 
112
-
113
115
  // applyRootMotion(obj: Object3D) {
114
116
  // // this.internalApplyRootMotion(obj);
115
117
  // }
116
118
 
117
119
  bind(animator: Animator) {
118
- this.animator = animator;
119
- this._mixer = new AnimationMixer(this.animator.gameObject);
120
- this.createActions(this.animator);
120
+ if (this.animator !== animator) {
121
+ this.animator = animator;
122
+ this._mixer = new AnimationMixer(this.animator.gameObject);
123
+ this.createActions(this.animator);
124
+ }
121
125
  }
122
126
 
123
127
  clone() {
@@ -144,11 +148,11 @@
144
148
  return controller;
145
149
  }
146
150
 
147
- update() {
151
+ update(weight: number) {
148
152
  if (!this.animator) return;
149
153
  this.evaluateTransitions();
150
- this.updateActiveStates();
151
- if(!this._activeState) return;
154
+ this.updateActiveStates(weight);
155
+ if (!this._activeState) return;
152
156
  const dt = this.animator.context.time.deltaTime;
153
157
  if (this.animator.applyRootMotion) {
154
158
  this.rootMotionHandler?.onBeforeUpdate();
@@ -170,7 +174,7 @@
170
174
 
171
175
  private _activeStates: State[] = [];
172
176
 
173
- private updateActiveStates() {
177
+ private updateActiveStates(weight: number) {
174
178
  for (let i = 0; i < this._activeStates.length; i++) {
175
179
  const state = this._activeStates[i];
176
180
  const motion = state.motion;
@@ -180,6 +184,7 @@
180
184
  }
181
185
  else {
182
186
  const action = motion.action;
187
+ action.weight = weight;
183
188
  // console.log(action.getClip().name, action.getEffectiveWeight(), action.isScheduled());
184
189
  if ((action.getEffectiveWeight() <= 0 && !action.isRunning())) {
185
190
  if (debug)
@@ -279,6 +284,9 @@
279
284
  // if none of the transitions can be made continue searching for another transition meeting the conditions
280
285
  }
281
286
 
287
+ // action.time += this.context.time.deltaTime
288
+ // console.log(action?.time, action?.getEffectiveWeight())
289
+
282
290
  let didTriggerLooping = false;
283
291
  if (state.motion.isLooping && action) {
284
292
  // we dont use the three loop state here because it prevents the transition check above
@@ -384,15 +392,14 @@
384
392
  action.enabled = true;
385
393
  const duration = state.motion.clip!.duration;
386
394
  action.time = offsetNormalized * duration;
387
- if(action.timeScale < 0) action.time = duration - action.time;
395
+ if (action.timeScale < 0) action.time = duration - action.time;
388
396
  action.clampWhenFinished = true;
389
397
  action.setLoop(LoopOnce, 0);
390
398
  if (durationInSec > 0)
391
399
  action.fadeIn(durationInSec);
392
- else action.setEffectiveWeight(1);
400
+ else action.weight = 1;
393
401
  action.play();
394
402
 
395
-
396
403
  if (this.rootMotionHandler) {
397
404
  this.rootMotionHandler.onStart(action);
398
405
  }
src/engine-components/postprocessing/Effects/Antialiasing.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { EdgeDetectionMode, SMAAEffect, SMAAPreset } from "postprocessing";
2
- import { serializable } from "../../../engine/engine_serialization";
3
- import { EffectProviderResult, PostProcessingEffect } from "../PostProcessingEffect";
4
- import { VolumeParameter } from "../VolumeParameter";
5
- import { registerCustomEffectType } from "../VolumeProfile";
2
+ import { serializable } from "../../../engine/engine_serialization.js";
3
+ import { EffectProviderResult, PostProcessingEffect } from "../PostProcessingEffect.js";
4
+ import { VolumeParameter } from "../VolumeParameter.js";
5
+ import { registerCustomEffectType } from "../VolumeProfile.js";
6
6
 
7
7
 
8
8
 
src/engine-components-experimental/api.ts CHANGED
@@ -1,1 +1,1 @@
1
- export * from "./networking/PlayerSync";
1
+ export * from "./networking/PlayerSync.js";
src/engine-components/api.ts CHANGED
@@ -1,19 +1,19 @@
1
- export { Behaviour, Component, GameObject } from "./Component"
2
- export * from "./codegen/components";
1
+ export { Behaviour, Component, GameObject } from "./Component.js"
2
+ export * from "./codegen/components.js";
3
3
 
4
4
  // We dont want to export everything in the extensions
5
- export * from "./js-extensions/RGBAColor";
6
- export * from "./js-extensions/Object3D";
7
- export * from "./XRFlag"
5
+ export * from "./js-extensions/RGBAColor.js";
6
+ export * from "./js-extensions/Object3D.js";
7
+ export * from "./XRFlag.js"
8
8
 
9
- export * from "./export"
10
- export * from "./postprocessing"
11
- export * from "./timeline"
12
- export * from "./ui"
13
- export * from "./webxr"
9
+ export * from "./export/index.js"
10
+ export * from "./postprocessing/index.js"
11
+ export * from "./timeline/index.js"
12
+ export * from "./ui/index.js"
13
+ export * from "./webxr/index.js"
14
14
 
15
- export { ClearFlags } from "./Camera"
15
+ export { ClearFlags } from "./Camera.js"
16
16
 
17
17
 
18
- import "./CameraUtils"
19
- import "./AnimationUtils"
18
+ import "./CameraUtils.js"
19
+ import "./AnimationUtils.js"
src/engine/api.ts CHANGED
@@ -1,52 +1,52 @@
1
1
 
2
- export * from "./extensions";
3
- export * from "./engine_addressables";
4
- export * from "./engine_application";
5
- export * from "./engine_assetdatabase";
6
- export * from "./engine_create_objects";
7
- export * from "./engine_components_internal";
8
- export * from "./engine_components";
9
- export * from "./engine_components_internal";
10
- export * from "./engine_context_registry";
11
- export * from "./engine_context";
12
- export * from "./engine_coroutine"
13
- export * from "./engine_constants";
14
- export * from "./debug";
15
- export * from "./engine_element";
16
- export * from "./engine_element_loading";
17
- export * from "./engine_element_attributes";
18
- export { Gizmos } from "./engine_gizmos"
19
- export * from "./engine_gltf";
20
- export * from "./engine_hot_reload";
21
- export * from "./engine_gameobject";
22
- export * from "./engine_networking";
23
- export * from "./engine_networking_types";
24
- export { syncField } from "./engine_networking_auto";
25
- export * from "./engine_networking_files";
26
- export * from "./engine_networking_instantiate";
27
- export * from "./engine_networking_utils";
28
- export * from "./engine_patcher";
29
- export * from "./engine_playerview";
30
- export * from "./engine_physics";
31
- export * from "./engine_physics.types";
32
- export * from "./engine_physics_rapier";
33
- export * from "./engine_scenelighting";
34
- export * from "./engine_input";
35
- export * from "./engine_math";
36
- export * from "./js-extensions";
37
- export * from "./engine_scenetools";
38
- export * from "./engine_serialization";
39
- export { type ISerializable } from "./engine_serialization_core";
40
- export * from "./engine_texture";
41
- export * from "./engine_three_utils";
42
- export * from "./engine_time";
43
- export * from "./engine_types";
44
- export * from "./engine_utils_screenshot";
45
- export * from "./engine_web_api";
46
- export * from "./engine_utils";
2
+ export * from "./extensions/index.js";
3
+ export * from "./engine_addressables.js";
4
+ export * from "./engine_application.js";
5
+ export * from "./engine_assetdatabase.js";
6
+ export * from "./engine_create_objects.js";
7
+ export * from "./engine_components_internal.js";
8
+ export * from "./engine_components.js";
9
+ export * from "./engine_components_internal.js";
10
+ export * from "./engine_context_registry.js";
11
+ export * from "./engine_context.js";
12
+ export * from "./engine_coroutine.js"
13
+ export * from "./engine_constants.js";
14
+ export * from "./debug/index.js";
15
+ export * from "./engine_element.js";
16
+ export * from "./engine_element_loading.js";
17
+ export * from "./engine_element_attributes.js";
18
+ export { Gizmos } from "./engine_gizmos.js"
19
+ export * from "./engine_gltf.js";
20
+ export * from "./engine_hot_reload.js";
21
+ export * from "./engine_gameobject.js";
22
+ export * from "./engine_networking.js";
23
+ export * from "./engine_networking_types.js";
24
+ export { syncField } from "./engine_networking_auto.js";
25
+ export * from "./engine_networking_files.js";
26
+ export * from "./engine_networking_instantiate.js";
27
+ export * from "./engine_networking_utils.js";
28
+ export * from "./engine_patcher.js";
29
+ export * from "./engine_playerview.js";
30
+ export * from "./engine_physics.js";
31
+ export * from "./engine_physics.types.js";
32
+ export * from "./engine_physics_rapier.js";
33
+ export * from "./engine_scenelighting.js";
34
+ export * from "./engine_input.js";
35
+ export * from "./engine_math.js";
36
+ export * from "./js-extensions/index.js";
37
+ export * from "./engine_scenetools.js";
38
+ export * from "./engine_serialization.js";
39
+ export { type ISerializable } from "./engine_serialization_core.js";
40
+ export * from "./engine_texture.js";
41
+ export * from "./engine_three_utils.js";
42
+ export * from "./engine_time.js";
43
+ export * from "./engine_types.js";
44
+ export * from "./engine_utils_screenshot.js";
45
+ export * from "./engine_web_api.js";
46
+ export * from "./engine_utils.js";
47
47
 
48
- export { TypeStore, registerType } from "./engine_typestore";
48
+ export { TypeStore, registerType } from "./engine_typestore.js";
49
49
 
50
- export { InstancingUtil } from "./engine_instancing";
51
- export { validate, prefix } from "./engine_util_decorator";
52
- export { hasProLicense, hasIndieLicense } from "./engine_license";
50
+ export { InstancingUtil } from "./engine_instancing.js";
51
+ export { validate, prefix } from "./engine_util_decorator.js";
52
+ export { hasProLicense, hasIndieLicense } from "./engine_license.js";
src/engine-components/export/usdz/extensions/behavior/AudioExtension.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { GameObject } from "../../../../Component";
2
- import { IUSDExporterExtension } from "../../Extension";
3
- import { USDObject, USDWriter, USDZExporterContext } from "../../ThreeUSDZExporter";
1
+ import { GameObject } from "../../../../Component.js";
2
+ import { IUSDExporterExtension } from "../../Extension.js";
3
+ import { USDObject, USDWriter, USDZExporterContext } from "../../ThreeUSDZExporter.js";
4
4
  import { Object3D } from "three";
5
- import { AudioSource } from "../../../../AudioSource";
5
+ import { AudioSource } from "../../../../AudioSource.js";
6
6
 
7
7
  export class AudioExtension implements IUSDExporterExtension {
8
8
 
src/engine-components/AudioListener.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Behaviour, GameObject } from "./Component";
1
+ import { Behaviour, GameObject } from "./Component.js";
2
2
  import { AudioListener as ThreeAudioListener } from "three";
3
- import { AudioSource } from "./AudioSource";
4
- import { Camera } from "./Camera";
3
+ import { AudioSource } from "./AudioSource.js";
4
+ import { Camera } from "./Camera.js";
5
5
 
6
6
 
7
7
  export class AudioListener extends Behaviour {
src/engine-components/AudioSource.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { Behaviour, GameObject } from "./Component";
1
+ import { Behaviour, GameObject } from "./Component.js";
2
2
  import { PositionalAudioHelper } from 'three/examples/jsm/helpers/PositionalAudioHelper.js';
3
- import { AudioListener } from "./AudioListener";
4
- import * as utils from "../engine/engine_utils";
5
- import { serializable } from "../engine/engine_serialization_decorator";
6
- import { ApplicationEvents } from "../engine/engine_application";
3
+ import { AudioListener } from "./AudioListener.js";
4
+ import * as utils from "../engine/engine_utils.js";
5
+ import { serializable } from "../engine/engine_serialization_decorator.js";
6
+ import { ApplicationEvents } from "../engine/engine_application.js";
7
7
  import { AudioLoader, PositionalAudio } from "three";
8
8
 
9
9
 
src/engine-components/avatar/Avatar_Brain_LookAt.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as THREE from "three";
2
- import { TypeStore } from "../../engine/engine_typestore";
3
- import { Behaviour, GameObject } from "../Component";
4
- import { AvatarMarker } from "../webxr/WebXRAvatar";
5
- import * as utils from "../../engine/engine_three_utils";
6
- import { OwnershipModel } from "../../engine/engine_networking";
2
+ import { TypeStore } from "../../engine/engine_typestore.js";
3
+ import { Behaviour, GameObject } from "../Component.js";
4
+ import { AvatarMarker } from "../webxr/WebXRAvatar.js";
5
+ import * as utils from "../../engine/engine_three_utils.js";
6
+ import { OwnershipModel } from "../../engine/engine_networking.js";
7
7
  import { Int8BufferAttribute } from "three";
8
- import { Context } from "../../engine/engine_setup";
9
- import { IModel } from "../../engine/engine_networking_types";
8
+ import { Context } from "../../engine/engine_setup.js";
9
+ import { IModel } from "../../engine/engine_networking_types.js";
10
10
 
11
11
  export class Avatar_POI {
12
12
 
src/engine-components/avatar/Avatar_MouthShapes.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { Behaviour, GameObject } from "../Component";
2
- import { Voip } from "../Voip";
3
- import { AvatarMarker } from "../webxr/WebXRAvatar";
4
- import * as utils from "../../engine/engine_utils";
1
+ import { Behaviour, GameObject } from "../Component.js";
2
+ import { Voip } from "../Voip.js";
3
+ import { AvatarMarker } from "../webxr/WebXRAvatar.js";
4
+ import * as utils from "../../engine/engine_utils.js";
5
5
  import { Object3D } from "three";
6
- import { serializable } from "../../engine/engine_serialization_decorator";
6
+ import { serializable } from "../../engine/engine_serialization_decorator.js";
7
7
 
8
8
  const debug = utils.getParam("debugmouth");
9
9
 
src/engine-components/avatar/Avatar_MustacheShake.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Behaviour, GameObject } from "../Component";
2
- import { Voip } from "../Voip";
3
- import { AvatarMarker } from "../webxr/WebXRAvatar";
1
+ import { Behaviour, GameObject } from "../Component.js";
2
+ import { Voip } from "../Voip.js";
3
+ import { AvatarMarker } from "../webxr/WebXRAvatar.js";
4
4
 
5
5
  export class Avatar_MustacheShake extends Behaviour {
6
6
  private voip: Voip | null = null;
src/engine-components/avatar/AvatarBlink_Simple.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Object3D } from "three";
2
- import { Behaviour, GameObject } from "../Component";
3
- import { XRFlag, XRState } from "../XRFlag";
4
- import { serializable } from "../../engine/engine_serialization_decorator";
2
+ import { Behaviour, GameObject } from "../Component.js";
3
+ import { XRFlag, XRState } from "../XRFlag.js";
4
+ import { serializable } from "../../engine/engine_serialization_decorator.js";
5
5
 
6
6
 
7
7
  export class AvatarBlink_Simple extends Behaviour {
src/engine-components/avatar/AvatarEyeLook_Rotation.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Behaviour, GameObject } from "../Component";
2
- import * as utils from "../../engine/engine_three_utils"
1
+ import { Behaviour, GameObject } from "../Component.js";
2
+ import * as utils from "../../engine/engine_three_utils.js"
3
3
  import * as THREE from "three";
4
- import { Avatar_Brain_LookAt } from "./Avatar_Brain_LookAt";
5
- import { serializable } from "../../engine/engine_serialization_decorator";
4
+ import { Avatar_Brain_LookAt } from "./Avatar_Brain_LookAt.js";
5
+ import { serializable } from "../../engine/engine_serialization_decorator.js";
6
6
  import { Object3D } from "three";
7
7
 
8
8
  export class AvatarEyeLook_Rotation extends Behaviour {
src/engine-components/AvatarLoader.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";
2
- import * as utils from "../engine/engine_utils"
3
- import * as loaders from "../engine/engine_loaders"
4
- import { Context } from "../engine/engine_setup";
5
- import { GameObject } from "./Component";
6
- import { download_file } from "../engine/engine_web_api";
7
- import { getLoader } from "../engine/engine_gltf";
8
- import { InstantiateOptions } from "../engine/engine_gameobject";
1
+ import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js";
2
+ import * as utils from "../engine/engine_utils.js"
3
+ import * as loaders from "../engine/engine_loaders.js"
4
+ import { Context } from "../engine/engine_setup.js";
5
+ import { GameObject } from "./Component.js";
6
+ import { download_file } from "../engine/engine_web_api.js";
7
+ import { getLoader } from "../engine/engine_gltf.js";
8
+ import { InstantiateOptions } from "../engine/engine_gameobject.js";
9
9
  import { Box3, Object3D, Vector3 } from "three";
10
10
 
11
11
  const debug = utils.getParam("debugavatar");
src/engine-components/AxesHelper.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Behaviour } from "./Component";
2
- import * as params from "../engine/engine_default_parameters";
3
- import { serializable } from "../engine/engine_serialization_decorator";
1
+ import { Behaviour } from "./Component.js";
2
+ import * as params from "../engine/engine_default_parameters.js";
3
+ import { serializable } from "../engine/engine_serialization_decorator.js";
4
4
  import { AxesHelper as _AxesHelper } from "three";
5
5
 
6
6
  export class AxesHelper extends Behaviour {
src/engine-components/ui/BaseUIComponent.ts CHANGED
@@ -1,12 +1,12 @@
1
- // import { Canvas } from './Canvas';
1
+ // import { Canvas } from './Canvas.js';
2
2
  import * as ThreeMeshUI from 'three-mesh-ui';
3
- import { Behaviour, GameObject } from "../Component";
4
- import { EventSystem } from "./EventSystem";
5
- import { showGizmos } from '../../engine/engine_default_parameters';
3
+ import { Behaviour, GameObject } from "../Component.js";
4
+ import { EventSystem } from "./EventSystem.js";
5
+ import { showGizmos } from '../../engine/engine_default_parameters.js';
6
6
  import { AxesHelper, Object3D } from 'three';
7
- import { ICanvas, IGraphic } from './Interfaces';
8
- import { ShadowCastingMode } from '../Renderer';
9
- import { getParam } from '../../engine/engine_utils';
7
+ import { ICanvas, IGraphic } from './Interfaces.js';
8
+ import { ShadowCastingMode } from '../Renderer.js';
9
+ import { getParam } from '../../engine/engine_utils.js';
10
10
  export const includesDir = "./include";
11
11
 
12
12
  const debug = getParam("debugshadowcomponents");
src/engine-components/BasicIKConstraint.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Behaviour, GameObject } from "./Component";
2
- import * as utils from "./../engine/engine_three_utils";
1
+ import { Behaviour, GameObject } from "./Component.js";
2
+ import * as utils from "./../engine/engine_three_utils.js";
3
3
  import { Vector3 } from "three";
4
4
 
5
5
  export class BasicIKConstraint extends Behaviour {
src/engine-components/export/usdz/extensions/behavior/Behaviour.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { GameObject } from "../../../../Component";
2
- import { IContext } from "../../../../../engine/engine_types";
3
- import { IUSDExporterExtension } from "../../Extension";
4
- import { USDObject, USDWriter } from "../../ThreeUSDZExporter";
5
- import { BehaviorModel } from "./BehavioursBuilder";
1
+ import { GameObject } from "../../../../Component.js";
2
+ import { IContext } from "../../../../../engine/engine_types.js";
3
+ import { IUSDExporterExtension } from "../../Extension.js";
4
+ import { USDObject, USDWriter } from "../../ThreeUSDZExporter.js";
5
+ import { BehaviorModel } from "./BehavioursBuilder.js";
6
6
 
7
7
  export interface UsdzBehaviour {
8
8
  createBehaviours?(ext: BehaviorExtension, model: USDObject, context: IContext): void;
src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts CHANGED
@@ -1,18 +1,18 @@
1
- import { Behaviour, GameObject } from "../../../../Component";
2
- import { Animator } from "../../../../Animator";
3
- import { Renderer } from "../../../../Renderer";
4
- import { serializable } from "../../../../../engine/engine_serialization_decorator";
5
- import { IPointerClickHandler } from "../../../../ui/PointerEvents";
6
- import { RegisteredAnimationInfo, UsdzAnimation } from "../Animation";
7
- import { getWorldPosition, getWorldQuaternion, getWorldScale, setWorldPosition, setWorldQuaternion, setWorldScale } from "../../../../../engine/engine_three_utils";
1
+ import { Behaviour, GameObject } from "../../../../Component.js";
2
+ import { Animator } from "../../../../Animator.js";
3
+ import { Renderer } from "../../../../Renderer.js";
4
+ import { serializable } from "../../../../../engine/engine_serialization_decorator.js";
5
+ import { IPointerClickHandler } from "../../../../ui/PointerEvents.js";
6
+ import { RegisteredAnimationInfo, UsdzAnimation } from "../Animation.js";
7
+ import { getWorldPosition, getWorldQuaternion, getWorldScale, setWorldPosition, setWorldQuaternion, setWorldScale } from "../../../../../engine/engine_three_utils.js";
8
8
 
9
9
  import { Object3D, Material, Vector3, Quaternion } from "three";
10
- import { USDDocument, USDObject } from "../../ThreeUSDZExporter";
10
+ import { USDDocument, USDObject } from "../../ThreeUSDZExporter.js";
11
11
 
12
- import { BehaviorExtension, UsdzBehaviour } from "./Behaviour";
13
- import { ActionBuilder, ActionModel, AuralMode, BehaviorModel, IBehaviorElement, MotionType, PlayAction, Space, TriggerBuilder } from "./BehavioursBuilder";
14
- import { AudioSource } from "../../../../AudioSource";
15
- import { NEEDLE_progressive } from "../../../../../engine/extensions/NEEDLE_progressive";
12
+ import { BehaviorExtension, UsdzBehaviour } from "./Behaviour.js";
13
+ import { ActionBuilder, ActionModel, AuralMode, BehaviorModel, IBehaviorElement, MotionType, PlayAction, Space, TriggerBuilder } from "./BehavioursBuilder.js";
14
+ import { AudioSource } from "../../../../AudioSource.js";
15
+ import { NEEDLE_progressive } from "../../../../../engine/extensions/NEEDLE_progressive.js";
16
16
 
17
17
  export class ChangeTransformOnClick extends Behaviour implements IPointerClickHandler, UsdzBehaviour {
18
18
 
src/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Object3D } from "three";
2
- import { USDDocument, USDObject, USDWriter, makeNameSafeForUSD } from "../../ThreeUSDZExporter";
2
+ import { USDDocument, USDObject, USDWriter, makeNameSafeForUSD } from "../../ThreeUSDZExporter.js";
3
3
 
4
- import { BehaviorExtension } from "./Behaviour";
4
+ import { BehaviorExtension } from "./Behaviour.js";
5
5
 
6
6
  // TODO: rename to usdz element
7
7
  export interface IBehaviorElement {
src/engine-components/postprocessing/Effects/Bloom.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BlendFunction, BloomEffect, SelectiveBloomEffect } from "postprocessing";
2
- import { serializable } from "../../../engine/engine_serialization";
3
- import { PostProcessingEffect } from "../PostProcessingEffect";
4
- import { VolumeParameter } from "../VolumeParameter";
5
- import { registerCustomEffectType } from "../VolumeProfile";
2
+ import { serializable } from "../../../engine/engine_serialization.js";
3
+ import { PostProcessingEffect } from "../PostProcessingEffect.js";
4
+ import { VolumeParameter } from "../VolumeParameter.js";
5
+ import { registerCustomEffectType } from "../VolumeProfile.js";
6
6
 
7
7
  export class Bloom extends PostProcessingEffect {
8
8
 
src/engine-components/BoxCollider.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { BoxCollider } from "./Collider";
1
+ import { BoxCollider } from "./Collider.js";
2
2
  export default BoxCollider;
src/engine-components/BoxHelperComponent.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Behaviour } from "./Component";
2
- import { getParam } from "../engine/engine_utils";
3
- import { CreateWireCube, Gizmos } from "../engine/engine_gizmos";
4
- import { getWorldPosition, getWorldScale } from "../engine/engine_three_utils";
1
+ import { Behaviour } from "./Component.js";
2
+ import { getParam } from "../engine/engine_utils.js";
3
+ import { CreateWireCube, Gizmos } from "../engine/engine_gizmos.js";
4
+ import { getWorldPosition, getWorldScale } from "../engine/engine_three_utils.js";
5
5
  import { Box3, Color, ColorRepresentation, LineSegments, Object3D, Vector3 } from "three";
6
6
 
7
7
  const gizmos = getParam("gizmos");
src/engine-components/ui/Button.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { Behaviour, GameObject } from "../Component";
2
- import { EventList } from "../EventList";
3
- import { IPointerClickHandler, IPointerEnterHandler, IPointerEventHandler, IPointerExitHandler, PointerEventData } from "./PointerEvents";
4
- import { Image } from "./Image";
5
- import { RGBAColor } from "../js-extensions/RGBAColor";
6
- import { serializable } from "../../engine/engine_serialization_decorator";
7
- import { Animator } from "../Animator";
8
- import { getParam } from "../../engine/engine_utils";
9
- import { showBalloonMessage } from "../../engine/debug";
1
+ import { Behaviour, GameObject } from "../Component.js";
2
+ import { EventList } from "../EventList.js";
3
+ import { IPointerClickHandler, IPointerEnterHandler, IPointerEventHandler, IPointerExitHandler, PointerEventData } from "./PointerEvents.js";
4
+ import { Image } from "./Image.js";
5
+ import { RGBAColor } from "../js-extensions/RGBAColor.js";
6
+ import { serializable } from "../../engine/engine_serialization_decorator.js";
7
+ import { Animator } from "../Animator.js";
8
+ import { getParam } from "../../engine/engine_utils.js";
9
+ import { showBalloonMessage } from "../../engine/debug/index.js";
10
10
 
11
11
  const debug = getParam("debugbutton");
12
12
 
src/engine-components/Camera.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { Behaviour, GameObject } from "./Component";
2
- import { getParam } from "../engine/engine_utils";
3
- import { serializable } from "../engine/engine_serialization_decorator";
4
- import { RGBAColor } from "./js-extensions/RGBAColor";
5
- import { Context, XRSessionMode } from "../engine/engine_setup";
6
- import { ICamera } from "../engine/engine_types"
7
- import { showBalloonMessage } from "../engine/debug/debug";
8
- import { getWorldPosition, Graphics } from "../engine/engine_three_utils";
9
- import { Gizmos } from "../engine/engine_gizmos";
1
+ import { Behaviour, GameObject } from "./Component.js";
2
+ import { getParam } from "../engine/engine_utils.js";
3
+ import { serializable } from "../engine/engine_serialization_decorator.js";
4
+ import { RGBAColor } from "./js-extensions/RGBAColor.js";
5
+ import { Context, XRSessionMode } from "../engine/engine_setup.js";
6
+ import { ICamera } from "../engine/engine_types.js"
7
+ import { showBalloonMessage } from "../engine/debug/index.js";
8
+ import { getWorldPosition, Graphics } from "../engine/engine_three_utils.js";
9
+ import { Gizmos } from "../engine/engine_gizmos.js";
10
10
 
11
11
  import { EquirectangularReflectionMapping, OrthographicCamera, PerspectiveCamera, Ray, SRGBColorSpace, sRGBEncoding, Vector3 } from "three";
12
- import { OrbitControls } from "./OrbitControls";
13
- import { RenderTexture } from "../engine/engine_texture";
12
+ import { OrbitControls } from "./OrbitControls.js";
13
+ import { RenderTexture } from "../engine/engine_texture.js";
14
14
 
15
15
  export enum ClearFlags {
16
16
  Skybox = 1,
src/engine-components/CameraUtils.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { OrbitControls } from "./OrbitControls";
2
- import { addNewComponent, getOrAddComponent } from "../engine/engine_components";
1
+ import { OrbitControls } from "./OrbitControls.js";
2
+ import { addNewComponent, getOrAddComponent } from "../engine/engine_components.js";
3
3
  import { Object3D } from "three";
4
- import { ICamera } from "../engine/engine_types";
5
- import { RGBAColor } from "./js-extensions/RGBAColor";
6
- import { ContextEvent, ContextRegistry } from "../engine/engine_context_registry";
7
- import { getCameraController } from "../engine/engine_camera";
8
- import { Camera } from "./Camera";
9
- import { NeedleEngineHTMLElement } from "../engine/engine_element";
10
- import { getParam } from "../engine/engine_utils";
4
+ import { ICamera } from "../engine/engine_types.js";
5
+ import { RGBAColor } from "./js-extensions/RGBAColor.js";
6
+ import { ContextEvent, ContextRegistry } from "../engine/engine_context_registry.js";
7
+ import { getCameraController } from "../engine/engine_camera.js";
8
+ import { Camera } from "./Camera.js";
9
+ import { NeedleEngineHTMLElement } from "../engine/engine_element.js";
10
+ import { getParam } from "../engine/engine_utils.js";
11
11
 
12
12
  const debug = getParam("debugmissingcamera");
13
13
 
src/engine-components/ui/Canvas.ts CHANGED
@@ -1,17 +1,17 @@
1
- import { onChange, updateRenderSettings as updateRenderSettingsRecursive } from "./Utils";
2
- import { serializable } from "../../engine/engine_serialization_decorator";
3
- import { FrameEvent } from "../../engine/engine_setup";
4
- import { BaseUIComponent, UIRootComponent } from "./BaseUIComponent";
5
- import { GameObject } from "../Component";
1
+ import { onChange, updateRenderSettings as updateRenderSettingsRecursive } from "./Utils.js";
2
+ import { serializable } from "../../engine/engine_serialization_decorator.js";
3
+ import { FrameEvent } from "../../engine/engine_setup.js";
4
+ import { BaseUIComponent, UIRootComponent } from "./BaseUIComponent.js";
5
+ import { GameObject } from "../Component.js";
6
6
  import { Matrix4, Object3D } from "three";
7
- import { RectTransform } from "./RectTransform";
8
- import { ICanvas, ILayoutGroup, IRectTransform } from "./Interfaces";
9
- import { Camera } from "../Camera";
10
- import { EventSystem } from "./EventSystem";
7
+ import { RectTransform } from "./RectTransform.js";
8
+ import { ICanvas, ILayoutGroup, IRectTransform } from "./Interfaces.js";
9
+ import { Camera } from "../Camera.js";
10
+ import { EventSystem } from "./EventSystem.js";
11
11
  import * as ThreeMeshUI from 'three-mesh-ui'
12
- import { getParam } from "../../engine/engine_utils";
13
- import { LayoutGroup } from "./Layout";
14
- import { Mathf } from "../../engine/engine_math";
12
+ import { getParam } from "../../engine/engine_utils.js";
13
+ import { LayoutGroup } from "./Layout.js";
14
+ import { Mathf } from "../../engine/engine_math.js";
15
15
 
16
16
  export enum RenderMode {
17
17
  ScreenSpaceOverlay = 0,
src/engine-components/ui/CanvasGroup.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { Graphic } from "./Graphic";
2
- import { FrameEvent } from "../../engine/engine_setup";
3
- import { Behaviour, GameObject } from "../Component";
4
- import { ICanvasGroup, IHasAlphaFactor } from "./Interfaces";
5
- import { serializable } from "../../engine/engine_serialization_decorator";
6
- import { BaseUIComponent } from "./BaseUIComponent";
1
+ import { Graphic } from "./Graphic.js";
2
+ import { FrameEvent } from "../../engine/engine_setup.js";
3
+ import { Behaviour, GameObject } from "../Component.js";
4
+ import { ICanvasGroup, IHasAlphaFactor } from "./Interfaces.js";
5
+ import { serializable } from "../../engine/engine_serialization_decorator.js";
6
+ import { BaseUIComponent } from "./BaseUIComponent.js";
7
7
 
8
8
 
9
9
  export class CanvasGroup extends Behaviour implements ICanvasGroup {
src/engine-components/CharacterController.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { Quaternion, Ray, Vector3 } from "three";
2
- import { Mathf } from "../engine/engine_math";
3
- import { serializable } from "../engine/engine_serialization";
4
- import { Collision } from "../engine/engine_types";
5
- import { CapsuleCollider } from "./Collider";
6
- import { Behaviour, GameObject } from "./Component";
7
- import { Rigidbody } from "./RigidBody";
8
- import { Animator } from "./Animator"
9
- import { RaycastOptions } from "../engine/engine_physics";
10
- import { getWorldPosition } from "../engine/engine_three_utils";
2
+ import { Mathf } from "../engine/engine_math.js";
3
+ import { serializable } from "../engine/engine_serialization.js";
4
+ import { Collision } from "../engine/engine_types.js";
5
+ import { CapsuleCollider } from "./Collider.js";
6
+ import { Behaviour, GameObject } from "./Component.js";
7
+ import { Rigidbody } from "./RigidBody.js";
8
+ import { Animator } from "./Animator.js"
9
+ import { RaycastOptions } from "../engine/engine_physics.js";
10
+ import { getWorldPosition } from "../engine/engine_three_utils.js";
11
11
 
12
12
  export class CharacterController extends Behaviour {
13
13
 
src/engine-components/postprocessing/Effects/ChromaticAberration.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { ChromaticAberrationEffect } from "postprocessing";
2
2
  import { Vector2 } from "three";
3
- import { serializable } from "../../../engine/engine_serialization";
4
- import { EffectProviderResult, PostProcessingEffect } from "../PostProcessingEffect";
5
- import { VolumeParameter } from "../VolumeParameter";
6
- import { registerCustomEffectType, VolumeProfile } from "../VolumeProfile";
3
+ import { serializable } from "../../../engine/engine_serialization.js";
4
+ import { EffectProviderResult, PostProcessingEffect } from "../PostProcessingEffect.js";
5
+ import { VolumeParameter } from "../VolumeParameter.js";
6
+ import { registerCustomEffectType, VolumeProfile } from "../VolumeProfile.js";
7
7
 
8
8
  export class ChromaticAberration extends PostProcessingEffect {
9
9
 
src/engine-components/Collider.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { Behaviour } from "./Component";
2
- import { Rigidbody } from "./RigidBody";
3
- import { serializable } from "../engine/engine_serialization_decorator";
1
+ import { Behaviour } from "./Component.js";
2
+ import { Rigidbody } from "./RigidBody.js";
3
+ import { serializable } from "../engine/engine_serialization_decorator.js";
4
4
  import { Event, Group, Mesh, Object3D, Vector3 } from "three"
5
- // import { IColliderProvider, registerColliderProvider } from "../engine/engine_physics";
6
- import { ICollider } from "../engine/engine_types";
7
- import { getWorldScale } from "../engine/engine_three_utils";
8
- import { PhysicsMaterial } from "../engine/engine_physics.types";
5
+ // import { IColliderProvider, registerColliderProvider } from "../engine/engine_physics.js";
6
+ import { ICollider } from "../engine/engine_types.js";
7
+ import { getWorldScale } from "../engine/engine_three_utils.js";
8
+ import { PhysicsMaterial } from "../engine/engine_physics.types.js";
9
9
 
10
10
 
11
11
  export class Collider extends Behaviour implements ICollider {
src/engine-components/postprocessing/Effects/ColorAdjustments.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BrightnessContrastEffect, HueSaturationEffect } from "postprocessing";
2
- import { serializable } from "../../../engine/engine_serialization";
3
- import { EffectProviderResult, PostProcessingEffect } from "../PostProcessingEffect";
4
- import { VolumeParameter } from "../VolumeParameter";
5
- import { registerCustomEffectType } from "../VolumeProfile";
2
+ import { serializable } from "../../../engine/engine_serialization.js";
3
+ import { EffectProviderResult, PostProcessingEffect } from "../PostProcessingEffect.js";
4
+ import { VolumeParameter } from "../VolumeParameter.js";
5
+ import { registerCustomEffectType } from "../VolumeProfile.js";
6
6
  import { CustomToneMapping, LinearToneMapping, NoToneMapping } from "three";
7
7
 
8
8
 
src/engine-components/Component.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { Mathf } from "../engine/engine_math";
2
- import * as threeutils from "../engine/engine_three_utils";
3
- import { activeInHierarchyFieldName } from "../engine/engine_constants";
4
- import { Context, FrameEvent } from "../engine/engine_setup";
5
- import * as main from "../engine/engine_mainloop_utils";
6
- import { syncDestroy, syncInstantiate } from "../engine/engine_networking_instantiate";
7
- import { ConstructorConcrete, SourceIdentifier, IComponent, IGameObject, Constructor, GuidsMap, Collision, ICollider } from "../engine/engine_types";
8
- import { addNewComponent, destroyComponentInstance, findObjectOfType, findObjectsOfType, getComponent, getComponentInChildren, getComponentInParent, getComponents, getComponentsInChildren, getComponentsInParent, getOrAddComponent, moveComponentInstance, removeComponent } from "../engine/engine_components";
9
- import { findByGuid, destroy, InstantiateOptions, instantiate, HideFlags, foreachComponent, markAsInstancedRendered, isActiveInHierarchy, isActiveSelf, isUsingInstancing, setActive, isDestroyed } from "../engine/engine_gameobject";
1
+ import { Mathf } from "../engine/engine_math.js";
2
+ import * as threeutils from "../engine/engine_three_utils.js";
3
+ import { activeInHierarchyFieldName } from "../engine/engine_constants.js";
4
+ import { Context, FrameEvent } from "../engine/engine_setup.js";
5
+ import * as main from "../engine/engine_mainloop_utils.js";
6
+ import { syncDestroy, syncInstantiate } from "../engine/engine_networking_instantiate.js";
7
+ import { ConstructorConcrete, SourceIdentifier, IComponent, IGameObject, Constructor, GuidsMap, Collision, ICollider } from "../engine/engine_types.js";
8
+ import { addNewComponent, destroyComponentInstance, findObjectOfType, findObjectsOfType, getComponent, getComponentInChildren, getComponentInParent, getComponents, getComponentsInChildren, getComponentsInParent, getOrAddComponent, moveComponentInstance, removeComponent } from "../engine/engine_components.js";
9
+ import { findByGuid, destroy, InstantiateOptions, instantiate, HideFlags, foreachComponent, markAsInstancedRendered, isActiveInHierarchy, isActiveSelf, isUsingInstancing, setActive, isDestroyed } from "../engine/engine_gameobject.js";
10
10
 
11
11
  import { Euler, Object3D, Quaternion, Scene, Vector3 } from "three";
12
- import { showBalloonWarning, isDevEnvironment } from "../engine/debug";
12
+ import { showBalloonWarning, isDevEnvironment } from "../engine/debug/index.js";
13
13
 
14
14
  // export interface ISerializationCallbackReceiver {
15
15
  // onBeforeSerialize?(): object | void;
src/engine-components/codegen/components.ts CHANGED
@@ -1,214 +1,214 @@
1
1
  // Export types
2
2
  export class __Ignore {}
3
- export { ActionBuilder } from "../export/usdz/extensions/behavior/BehavioursBuilder";
4
- export { ActionCollection } from "../export/usdz/extensions/behavior/Actions";
5
- export { ActionModel } from "../export/usdz/extensions/behavior/BehavioursBuilder";
6
- export { AlignmentConstraint } from "../AlignmentConstraint";
7
- export { Animation } from "../Animation";
8
- export { AnimationCurve } from "../AnimationCurve";
9
- export { AnimationExtension } from "../export/usdz/extensions/Animation";
10
- export { AnimationTrackHandler } from "../timeline/TimelineTracks";
11
- export { Animator } from "../Animator";
12
- export { AnimatorController } from "../AnimatorController";
13
- export { Antialiasing } from "../postprocessing/Effects/Antialiasing";
14
- export { AttachedObject } from "../webxr/WebXRController";
15
- export { AudioExtension } from "../export/usdz/extensions/behavior/AudioExtension";
16
- export { AudioListener } from "../AudioListener";
17
- export { AudioSource } from "../AudioSource";
18
- export { AudioTrackHandler } from "../timeline/TimelineTracks";
19
- export { Avatar_Brain_LookAt } from "../avatar/Avatar_Brain_LookAt";
20
- export { Avatar_MouthShapes } from "../avatar/Avatar_MouthShapes";
21
- export { Avatar_MustacheShake } from "../avatar/Avatar_MustacheShake";
22
- export { Avatar_POI } from "../avatar/Avatar_Brain_LookAt";
23
- export { AvatarBlink_Simple } from "../avatar/AvatarBlink_Simple";
24
- export { AvatarEyeLook_Rotation } from "../avatar/AvatarEyeLook_Rotation";
25
- export { AvatarLoader } from "../AvatarLoader";
26
- export { AvatarMarker } from "../webxr/WebXRAvatar";
27
- export { AvatarModel } from "../AvatarLoader";
28
- export { AxesHelper } from "../AxesHelper";
29
- export { BaseUIComponent } from "../ui/BaseUIComponent";
30
- export { BasicIKConstraint } from "../BasicIKConstraint";
31
- export { BehaviorExtension } from "../export/usdz/extensions/behavior/Behaviour";
32
- export { BehaviorModel } from "../export/usdz/extensions/behavior/BehavioursBuilder";
33
- export { Behaviour } from "../Component";
34
- export { Bloom } from "../postprocessing/Effects/Bloom";
35
- export { BoxCollider } from "../Collider";
36
- export { BoxGizmo } from "../Gizmos";
37
- export { BoxHelperComponent } from "../BoxHelperComponent";
38
- export { Button } from "../ui/Button";
39
- export { CallInfo } from "../EventList";
40
- export { Camera } from "../Camera";
41
- export { Canvas } from "../ui/Canvas";
42
- export { CanvasGroup } from "../ui/CanvasGroup";
43
- export { CapsuleCollider } from "../Collider";
44
- export { ChangeMaterialOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents";
45
- export { ChangeTransformOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents";
46
- export { CharacterController } from "../CharacterController";
47
- export { CharacterControllerInput } from "../CharacterController";
48
- export { ChromaticAberration } from "../postprocessing/Effects/ChromaticAberration";
49
- export { Collider } from "../Collider";
50
- export { ColorAdjustments } from "../postprocessing/Effects/ColorAdjustments";
51
- export { ColorBySpeedModule } from "../ParticleSystemModules";
52
- export { ColorOverLifetimeModule } from "../ParticleSystemModules";
53
- export { Component } from "../Component";
54
- export { ControlTrackHandler } from "../timeline/TimelineTracks";
55
- export { CustomBranding } from "../export/usdz/USDZExporter";
56
- export { Deletable } from "../DeleteBox";
57
- export { DeleteBox } from "../DeleteBox";
58
- export { DepthOfField } from "../postprocessing/Effects/DepthOfField";
59
- export { DeviceFlag } from "../DeviceFlag";
60
- export { DocumentExtension } from "../export/usdz/extensions/DocumentExtension";
61
- export { DragControls } from "../DragControls";
62
- export { DropListener } from "../DropListener";
63
- export { Duplicatable } from "../Duplicatable";
64
- export { EmissionModule } from "../ParticleSystemModules";
65
- export { EmphasizeOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents";
66
- export { EventList } from "../EventList";
67
- export { EventListEvent } from "../EventList";
68
- export { EventSystem } from "../ui/EventSystem";
69
- export { EventTrigger } from "../EventTrigger";
70
- export { FieldWithDefault } from "../Renderer";
71
- export { FixedJoint } from "../Joints";
72
- export { FlyControls } from "../FlyControls";
73
- export { Fog } from "../Fog";
74
- export { GltfExport } from "../export/gltf/GltfExport";
75
- export { GltfExportBox } from "../export/gltf/GltfExport";
76
- export { Gradient } from "../ParticleSystemModules";
77
- export { Graphic } from "../ui/Graphic";
78
- export { GraphicRaycaster } from "../ui/Raycaster";
79
- export { GridHelper } from "../GridHelper";
80
- export { GridLayoutGroup } from "../ui/Layout";
81
- export { GroundProjectedEnv } from "../GroundProjection";
82
- export { GroupActionModel } from "../export/usdz/extensions/behavior/BehavioursBuilder";
83
- export { HideOnStart } from "../export/usdz/extensions/behavior/BehaviourComponents";
84
- export { HingeJoint } from "../Joints";
85
- export { HorizontalLayoutGroup } from "../ui/Layout";
86
- export { Image } from "../ui/Image";
87
- export { InheritVelocityModule } from "../ParticleSystemModules";
88
- export { InputField } from "../ui/InputField";
89
- export { Interactable } from "../Interactable";
90
- export { Light } from "../Light";
91
- export { LimitVelocityOverLifetimeModule } from "../ParticleSystemModules";
92
- export { LODGroup } from "../LODGroup";
93
- export { LODModel } from "../LODGroup";
94
- export { LogStats } from "../debug/LogStats";
95
- export { LookAt } from "../utils/LookAt";
96
- export { LookAtConstraint } from "../LookAtConstraint";
97
- export { MainModule } from "../ParticleSystemModules";
98
- export { MaskableGraphic } from "../ui/Graphic";
99
- export { MeshCollider } from "../Collider";
100
- export { MeshRenderer } from "../Renderer";
101
- export { MinMaxCurve } from "../ParticleSystemModules";
102
- export { MinMaxGradient } from "../ParticleSystemModules";
103
- export { NestedGltf } from "../NestedGltf";
104
- export { Networking } from "../Networking";
105
- export { NoiseModule } from "../ParticleSystemModules";
106
- export { ObjectRaycaster } from "../ui/Raycaster";
107
- export { OffsetConstraint } from "../OffsetConstraint";
108
- export { OpenURL } from "../utils/OpenURL";
109
- export { OrbitControls } from "../OrbitControls";
110
- export { Outline } from "../ui/Outline";
111
- export { Padding } from "../ui/Layout";
112
- export { ParticleBurst } from "../ParticleSystemModules";
113
- export { ParticleSubEmitter } from "../ParticleSystemSubEmitter";
114
- export { ParticleSystem } from "../ParticleSystem";
115
- export { ParticleSystemRenderer } from "../ParticleSystem";
116
- export { PixelationEffect } from "../postprocessing/Effects/Pixelation";
117
- export { PlayableDirector } from "../timeline/PlayableDirector";
118
- export { PlayAnimationOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents";
119
- export { PlayAudioOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents";
120
- export { PlayerColor } from "../PlayerColor";
121
- export { PointerEventData } from "../ui/PointerEvents";
122
- export { PostProcessingHandler } from "../postprocessing/PostProcessingHandler";
123
- export { PreliminaryAction } from "../export/usdz/extensions/behavior/BehaviourComponents";
124
- export { PreliminaryTrigger } from "../export/usdz/extensions/behavior/BehaviourComponents";
125
- export { RawImage } from "../ui/Image";
126
- export { Raycaster } from "../ui/Raycaster";
127
- export { Rect } from "../ui/RectTransform";
128
- export { RectTransform } from "../ui/RectTransform";
129
- export { ReflectionProbe } from "../ReflectionProbe";
130
- export { RegisteredAnimationInfo } from "../export/usdz/extensions/Animation";
131
- export { RemoteSkybox } from "../Skybox";
132
- export { Renderer } from "../Renderer";
133
- export { RendererLightmap } from "../RendererLightmap";
134
- export { RGBAColor } from "../js-extensions/RGBAColor";
135
- export { Rigidbody } from "../RigidBody";
136
- export { RotationBySpeedModule } from "../ParticleSystemModules";
137
- export { RotationOverLifetimeModule } from "../ParticleSystemModules";
138
- export { SceneSwitcher } from "../SceneSwitcher";
139
- export { ScreenCapture } from "../ScreenCapture";
140
- export { ScreenSpaceAmbientOcclusion } from "../postprocessing/Effects/ScreenspaceAmbientOcclusion";
141
- export { ScreenSpaceAmbientOcclusionN8 } from "../postprocessing/Effects/ScreenspaceAmbientOcclusionN8";
142
- export { SetActiveOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents";
143
- export { ShadowCatcher } from "../ShadowCatcher";
144
- export { ShapeModule } from "../ParticleSystemModules";
145
- export { SignalAsset } from "../timeline/SignalAsset";
146
- export { SignalReceiver } from "../timeline/SignalAsset";
147
- export { SignalReceiverEvent } from "../timeline/SignalAsset";
148
- export { SignalTrackHandler } from "../timeline/TimelineTracks";
149
- export { Size } from "../ui/RectTransform";
150
- export { SizeBySpeedModule } from "../ParticleSystemModules";
151
- export { SizeOverLifetimeModule } from "../ParticleSystemModules";
152
- export { SkinnedMeshRenderer } from "../Renderer";
153
- export { SmoothFollow } from "../SmoothFollow";
154
- export { SpatialHtml } from "../ui/SpatialHtml";
155
- export { SpatialTrigger } from "../SpatialTrigger";
156
- export { SpatialTriggerReceiver } from "../SpatialTrigger";
157
- export { SpectatorCamera } from "../SpectatorCamera";
158
- export { SphereCollider } from "../Collider";
159
- export { Sprite } from "../SpriteRenderer";
160
- export { SpriteData } from "../SpriteRenderer";
161
- export { SpriteRenderer } from "../SpriteRenderer";
162
- export { SpriteSheet } from "../SpriteRenderer";
163
- export { SubEmitterSystem } from "../ParticleSystem";
164
- export { SyncedCamera } from "../SyncedCamera";
165
- export { SyncedRoom } from "../SyncedRoom";
166
- export { SyncedTransform } from "../SyncedTransform";
167
- export { TapGestureTrigger } from "../export/usdz/extensions/behavior/BehaviourComponents";
168
- export { TeleportTarget } from "../webxr/WebXRController";
169
- export { TestRunner } from "../TestRunner";
170
- export { TestSimulateUserData } from "../TestRunner";
171
- export { Text } from "../ui/Text";
172
- export { TextBuilder } from "../export/usdz/extensions/USDZText";
173
- export { TextExtension } from "../export/usdz/extensions/USDZText";
174
- export { TextureSheetAnimationModule } from "../ParticleSystemModules";
175
- export { TiltShiftEffect } from "../postprocessing/Effects/TiltShiftEffect";
176
- export { ToneMapping } from "../postprocessing/Effects/Tonemapping";
177
- export { TrailModule } from "../ParticleSystemModules";
178
- export { TransformData } from "../export/usdz/extensions/Animation";
179
- export { TransformGizmo } from "../TransformGizmo";
180
- export { TriggerBuilder } from "../export/usdz/extensions/behavior/BehavioursBuilder";
181
- export { TriggerModel } from "../export/usdz/extensions/behavior/BehavioursBuilder";
182
- export { UIRaycastUtils } from "../ui/RaycastUtils";
183
- export { UIRootComponent } from "../ui/BaseUIComponent";
184
- export { UsageMarker } from "../Interactable";
185
- export { USDZExporter } from "../export/usdz/USDZExporter";
186
- export { USDZText } from "../export/usdz/extensions/USDZText";
187
- export { USDZUIExtension } from "../export/usdz/extensions/USDZUI";
188
- export { VariantAction } from "../export/usdz/extensions/behavior/Actions";
189
- export { VelocityOverLifetimeModule } from "../ParticleSystemModules";
190
- export { VerticalLayoutGroup } from "../ui/Layout";
191
- export { VideoPlayer } from "../VideoPlayer";
192
- export { Vignette } from "../postprocessing/Effects/Vignette";
193
- export { VisibilityAction } from "../export/usdz/extensions/behavior/BehaviourComponents";
194
- export { Voip } from "../Voip";
195
- export { Volume } from "../postprocessing/Volume";
196
- export { VolumeParameter } from "../postprocessing/VolumeParameter";
197
- export { VolumeProfile } from "../postprocessing/VolumeProfile";
198
- export { VRUserState } from "../webxr/WebXRSync";
199
- export { WebAR } from "../webxr/WebXR";
200
- export { WebARCameraBackground } from "../webxr/WebARCameraBackground";
201
- export { WebARSessionRoot } from "../webxr/WebARSessionRoot";
202
- export { WebXR } from "../webxr/WebXR";
203
- export { WebXRAvatar } from "../webxr/WebXRAvatar";
204
- export { WebXRController } from "../webxr/WebXRController";
205
- export { WebXRImageTracking } from "../webxr/WebXRImageTracking";
206
- export { WebXRImageTrackingModel } from "../webxr/WebXRImageTracking";
207
- export { WebXRPlaneTracking } from "../webxr/WebXRPlaneTracking";
208
- export { WebXRSync } from "../webxr/WebXRSync";
209
- export { WebXRTrackedImage } from "../webxr/WebXRImageTracking";
210
- export { XRFlag } from "../XRFlag";
211
- export { XRGrabModel } from "../webxr/WebXRGrabRendering";
212
- export { XRGrabRendering } from "../webxr/WebXRGrabRendering";
213
- export { XRRig } from "../webxr/WebXRRig";
214
- export { XRState } from "../XRFlag";
3
+ export { ActionBuilder } from "../export/usdz/extensions/behavior/BehavioursBuilder.js";
4
+ export { ActionCollection } from "../export/usdz/extensions/behavior/Actions.js";
5
+ export { ActionModel } from "../export/usdz/extensions/behavior/BehavioursBuilder.js";
6
+ export { AlignmentConstraint } from "../AlignmentConstraint.js";
7
+ export { Animation } from "../Animation.js";
8
+ export { AnimationCurve } from "../AnimationCurve.js";
9
+ export { AnimationExtension } from "../export/usdz/extensions/Animation.js";
10
+ export { AnimationTrackHandler } from "../timeline/TimelineTracks.js";
11
+ export { Animator } from "../Animator.js";
12
+ export { AnimatorController } from "../AnimatorController.js";
13
+ export { Antialiasing } from "../postprocessing/Effects/Antialiasing.js";
14
+ export { AttachedObject } from "../webxr/WebXRController.js";
15
+ export { AudioExtension } from "../export/usdz/extensions/behavior/AudioExtension.js";
16
+ export { AudioListener } from "../AudioListener.js";
17
+ export { AudioSource } from "../AudioSource.js";
18
+ export { AudioTrackHandler } from "../timeline/TimelineTracks.js";
19
+ export { Avatar_Brain_LookAt } from "../avatar/Avatar_Brain_LookAt.js";
20
+ export { Avatar_MouthShapes } from "../avatar/Avatar_MouthShapes.js";
21
+ export { Avatar_MustacheShake } from "../avatar/Avatar_MustacheShake.js";
22
+ export { Avatar_POI } from "../avatar/Avatar_Brain_LookAt.js";
23
+ export { AvatarBlink_Simple } from "../avatar/AvatarBlink_Simple.js";
24
+ export { AvatarEyeLook_Rotation } from "../avatar/AvatarEyeLook_Rotation.js";
25
+ export { AvatarLoader } from "../AvatarLoader.js";
26
+ export { AvatarMarker } from "../webxr/WebXRAvatar.js";
27
+ export { AvatarModel } from "../AvatarLoader.js";
28
+ export { AxesHelper } from "../AxesHelper.js";
29
+ export { BaseUIComponent } from "../ui/BaseUIComponent.js";
30
+ export { BasicIKConstraint } from "../BasicIKConstraint.js";
31
+ export { BehaviorExtension } from "../export/usdz/extensions/behavior/Behaviour.js";
32
+ export { BehaviorModel } from "../export/usdz/extensions/behavior/BehavioursBuilder.js";
33
+ export { Behaviour } from "../Component.js";
34
+ export { Bloom } from "../postprocessing/Effects/Bloom.js";
35
+ export { BoxCollider } from "../Collider.js";
36
+ export { BoxGizmo } from "../Gizmos.js";
37
+ export { BoxHelperComponent } from "../BoxHelperComponent.js";
38
+ export { Button } from "../ui/Button.js";
39
+ export { CallInfo } from "../EventList.js";
40
+ export { Camera } from "../Camera.js";
41
+ export { Canvas } from "../ui/Canvas.js";
42
+ export { CanvasGroup } from "../ui/CanvasGroup.js";
43
+ export { CapsuleCollider } from "../Collider.js";
44
+ export { ChangeMaterialOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
45
+ export { ChangeTransformOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
46
+ export { CharacterController } from "../CharacterController.js";
47
+ export { CharacterControllerInput } from "../CharacterController.js";
48
+ export { ChromaticAberration } from "../postprocessing/Effects/ChromaticAberration.js";
49
+ export { Collider } from "../Collider.js";
50
+ export { ColorAdjustments } from "../postprocessing/Effects/ColorAdjustments.js";
51
+ export { ColorBySpeedModule } from "../ParticleSystemModules.js";
52
+ export { ColorOverLifetimeModule } from "../ParticleSystemModules.js";
53
+ export { Component } from "../Component.js";
54
+ export { ControlTrackHandler } from "../timeline/TimelineTracks.js";
55
+ export { CustomBranding } from "../export/usdz/USDZExporter.js";
56
+ export { Deletable } from "../DeleteBox.js";
57
+ export { DeleteBox } from "../DeleteBox.js";
58
+ export { DepthOfField } from "../postprocessing/Effects/DepthOfField.js";
59
+ export { DeviceFlag } from "../DeviceFlag.js";
60
+ export { DocumentExtension } from "../export/usdz/extensions/DocumentExtension.js";
61
+ export { DragControls } from "../DragControls.js";
62
+ export { DropListener } from "../DropListener.js";
63
+ export { Duplicatable } from "../Duplicatable.js";
64
+ export { EmissionModule } from "../ParticleSystemModules.js";
65
+ export { EmphasizeOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
66
+ export { EventList } from "../EventList.js";
67
+ export { EventListEvent } from "../EventList.js";
68
+ export { EventSystem } from "../ui/EventSystem.js";
69
+ export { EventTrigger } from "../EventTrigger.js";
70
+ export { FieldWithDefault } from "../Renderer.js";
71
+ export { FixedJoint } from "../Joints.js";
72
+ export { FlyControls } from "../FlyControls.js";
73
+ export { Fog } from "../Fog.js";
74
+ export { GltfExport } from "../export/gltf/GltfExport.js";
75
+ export { GltfExportBox } from "../export/gltf/GltfExport.js";
76
+ export { Gradient } from "../ParticleSystemModules.js";
77
+ export { Graphic } from "../ui/Graphic.js";
78
+ export { GraphicRaycaster } from "../ui/Raycaster.js";
79
+ export { GridHelper } from "../GridHelper.js";
80
+ export { GridLayoutGroup } from "../ui/Layout.js";
81
+ export { GroundProjectedEnv } from "../GroundProjection.js";
82
+ export { GroupActionModel } from "../export/usdz/extensions/behavior/BehavioursBuilder.js";
83
+ export { HideOnStart } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
84
+ export { HingeJoint } from "../Joints.js";
85
+ export { HorizontalLayoutGroup } from "../ui/Layout.js";
86
+ export { Image } from "../ui/Image.js";
87
+ export { InheritVelocityModule } from "../ParticleSystemModules.js";
88
+ export { InputField } from "../ui/InputField.js";
89
+ export { Interactable } from "../Interactable.js";
90
+ export { Light } from "../Light.js";
91
+ export { LimitVelocityOverLifetimeModule } from "../ParticleSystemModules.js";
92
+ export { LODGroup } from "../LODGroup.js";
93
+ export { LODModel } from "../LODGroup.js";
94
+ export { LogStats } from "../debug/LogStats.js";
95
+ export { LookAt } from "../utils/LookAt.js";
96
+ export { LookAtConstraint } from "../LookAtConstraint.js";
97
+ export { MainModule } from "../ParticleSystemModules.js";
98
+ export { MaskableGraphic } from "../ui/Graphic.js";
99
+ export { MeshCollider } from "../Collider.js";
100
+ export { MeshRenderer } from "../Renderer.js";
101
+ export { MinMaxCurve } from "../ParticleSystemModules.js";
102
+ export { MinMaxGradient } from "../ParticleSystemModules.js";
103
+ export { NestedGltf } from "../NestedGltf.js";
104
+ export { Networking } from "../Networking.js";
105
+ export { NoiseModule } from "../ParticleSystemModules.js";
106
+ export { ObjectRaycaster } from "../ui/Raycaster.js";
107
+ export { OffsetConstraint } from "../OffsetConstraint.js";
108
+ export { OpenURL } from "../utils/OpenURL.js";
109
+ export { OrbitControls } from "../OrbitControls.js";
110
+ export { Outline } from "../ui/Outline.js";
111
+ export { Padding } from "../ui/Layout.js";
112
+ export { ParticleBurst } from "../ParticleSystemModules.js";
113
+ export { ParticleSubEmitter } from "../ParticleSystemSubEmitter.js";
114
+ export { ParticleSystem } from "../ParticleSystem.js";
115
+ export { ParticleSystemRenderer } from "../ParticleSystem.js";
116
+ export { PixelationEffect } from "../postprocessing/Effects/Pixelation.js";
117
+ export { PlayableDirector } from "../timeline/PlayableDirector.js";
118
+ export { PlayAnimationOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
119
+ export { PlayAudioOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
120
+ export { PlayerColor } from "../PlayerColor.js";
121
+ export { PointerEventData } from "../ui/PointerEvents.js";
122
+ export { PostProcessingHandler } from "../postprocessing/PostProcessingHandler.js";
123
+ export { PreliminaryAction } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
124
+ export { PreliminaryTrigger } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
125
+ export { RawImage } from "../ui/Image.js";
126
+ export { Raycaster } from "../ui/Raycaster.js";
127
+ export { Rect } from "../ui/RectTransform.js";
128
+ export { RectTransform } from "../ui/RectTransform.js";
129
+ export { ReflectionProbe } from "../ReflectionProbe.js";
130
+ export { RegisteredAnimationInfo } from "../export/usdz/extensions/Animation.js";
131
+ export { RemoteSkybox } from "../Skybox.js";
132
+ export { Renderer } from "../Renderer.js";
133
+ export { RendererLightmap } from "../RendererLightmap.js";
134
+ export { RGBAColor } from "../js-extensions/RGBAColor.js";
135
+ export { Rigidbody } from "../RigidBody.js";
136
+ export { RotationBySpeedModule } from "../ParticleSystemModules.js";
137
+ export { RotationOverLifetimeModule } from "../ParticleSystemModules.js";
138
+ export { SceneSwitcher } from "../SceneSwitcher.js";
139
+ export { ScreenCapture } from "../ScreenCapture.js";
140
+ export { ScreenSpaceAmbientOcclusion } from "../postprocessing/Effects/ScreenspaceAmbientOcclusion.js";
141
+ export { ScreenSpaceAmbientOcclusionN8 } from "../postprocessing/Effects/ScreenspaceAmbientOcclusionN8.js";
142
+ export { SetActiveOnClick } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
143
+ export { ShadowCatcher } from "../ShadowCatcher.js";
144
+ export { ShapeModule } from "../ParticleSystemModules.js";
145
+ export { SignalAsset } from "../timeline/SignalAsset.js";
146
+ export { SignalReceiver } from "../timeline/SignalAsset.js";
147
+ export { SignalReceiverEvent } from "../timeline/SignalAsset.js";
148
+ export { SignalTrackHandler } from "../timeline/TimelineTracks.js";
149
+ export { Size } from "../ui/RectTransform.js";
150
+ export { SizeBySpeedModule } from "../ParticleSystemModules.js";
151
+ export { SizeOverLifetimeModule } from "../ParticleSystemModules.js";
152
+ export { SkinnedMeshRenderer } from "../Renderer.js";
153
+ export { SmoothFollow } from "../SmoothFollow.js";
154
+ export { SpatialHtml } from "../ui/SpatialHtml.js";
155
+ export { SpatialTrigger } from "../SpatialTrigger.js";
156
+ export { SpatialTriggerReceiver } from "../SpatialTrigger.js";
157
+ export { SpectatorCamera } from "../SpectatorCamera.js";
158
+ export { SphereCollider } from "../Collider.js";
159
+ export { Sprite } from "../SpriteRenderer.js";
160
+ export { SpriteData } from "../SpriteRenderer.js";
161
+ export { SpriteRenderer } from "../SpriteRenderer.js";
162
+ export { SpriteSheet } from "../SpriteRenderer.js";
163
+ export { SubEmitterSystem } from "../ParticleSystem.js";
164
+ export { SyncedCamera } from "../SyncedCamera.js";
165
+ export { SyncedRoom } from "../SyncedRoom.js";
166
+ export { SyncedTransform } from "../SyncedTransform.js";
167
+ export { TapGestureTrigger } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
168
+ export { TeleportTarget } from "../webxr/WebXRController.js";
169
+ export { TestRunner } from "../TestRunner.js";
170
+ export { TestSimulateUserData } from "../TestRunner.js";
171
+ export { Text } from "../ui/Text.js";
172
+ export { TextBuilder } from "../export/usdz/extensions/USDZText.js";
173
+ export { TextExtension } from "../export/usdz/extensions/USDZText.js";
174
+ export { TextureSheetAnimationModule } from "../ParticleSystemModules.js";
175
+ export { TiltShiftEffect } from "../postprocessing/Effects/TiltShiftEffect.js";
176
+ export { ToneMapping } from "../postprocessing/Effects/Tonemapping.js";
177
+ export { TrailModule } from "../ParticleSystemModules.js";
178
+ export { TransformData } from "../export/usdz/extensions/Animation.js";
179
+ export { TransformGizmo } from "../TransformGizmo.js";
180
+ export { TriggerBuilder } from "../export/usdz/extensions/behavior/BehavioursBuilder.js";
181
+ export { TriggerModel } from "../export/usdz/extensions/behavior/BehavioursBuilder.js";
182
+ export { UIRaycastUtils } from "../ui/RaycastUtils.js";
183
+ export { UIRootComponent } from "../ui/BaseUIComponent.js";
184
+ export { UsageMarker } from "../Interactable.js";
185
+ export { USDZExporter } from "../export/usdz/USDZExporter.js";
186
+ export { USDZText } from "../export/usdz/extensions/USDZText.js";
187
+ export { USDZUIExtension } from "../export/usdz/extensions/USDZUI.js";
188
+ export { VariantAction } from "../export/usdz/extensions/behavior/Actions.js";
189
+ export { VelocityOverLifetimeModule } from "../ParticleSystemModules.js";
190
+ export { VerticalLayoutGroup } from "../ui/Layout.js";
191
+ export { VideoPlayer } from "../VideoPlayer.js";
192
+ export { Vignette } from "../postprocessing/Effects/Vignette.js";
193
+ export { VisibilityAction } from "../export/usdz/extensions/behavior/BehaviourComponents.js";
194
+ export { Voip } from "../Voip.js";
195
+ export { Volume } from "../postprocessing/Volume.js";
196
+ export { VolumeParameter } from "../postprocessing/VolumeParameter.js";
197
+ export { VolumeProfile } from "../postprocessing/VolumeProfile.js";
198
+ export { VRUserState } from "../webxr/WebXRSync.js";
199
+ export { WebAR } from "../webxr/WebXR.js";
200
+ export { WebARCameraBackground } from "../webxr/WebARCameraBackground.js";
201
+ export { WebARSessionRoot } from "../webxr/WebARSessionRoot.js";
202
+ export { WebXR } from "../webxr/WebXR.js";
203
+ export { WebXRAvatar } from "../webxr/WebXRAvatar.js";
204
+ export { WebXRController } from "../webxr/WebXRController.js";
205
+ export { WebXRImageTracking } from "../webxr/WebXRImageTracking.js";
206
+ export { WebXRImageTrackingModel } from "../webxr/WebXRImageTracking.js";
207
+ export { WebXRPlaneTracking } from "../webxr/WebXRPlaneTracking.js";
208
+ export { WebXRSync } from "../webxr/WebXRSync.js";
209
+ export { WebXRTrackedImage } from "../webxr/WebXRImageTracking.js";
210
+ export { XRFlag } from "../XRFlag.js";
211
+ export { XRGrabModel } from "../webxr/WebXRGrabRendering.js";
212
+ export { XRGrabRendering } from "../webxr/WebXRGrabRendering.js";
213
+ export { XRRig } from "../webxr/WebXRRig.js";
214
+ export { XRState } from "../XRFlag.js";
src/engine/debug/debug_console.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { getErrorCount } from "./debug_overlay";
2
- import { getParam, isMobileDevice } from "../engine_utils";
3
- import { isLocalNetwork } from "../engine_networking_utils";
1
+ import { getErrorCount } from "./debug_overlay.js";
2
+ import { getParam, isMobileDevice } from "../engine_utils.js";
3
+ import { isLocalNetwork } from "../engine_networking_utils.js";
4
4
 
5
5
  let consoleInstance: any = null;
6
6
  let consoleHtmlElement: HTMLElement | null = null;
src/engine/debug/debug_overlay.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { getParam } from "../engine_utils";
2
- import { isLocalNetwork } from "../engine_networking_utils";
3
- import { ContextRegistry } from "../engine_context_registry";
1
+ import { getParam } from "../engine_utils.js";
2
+ import { isLocalNetwork } from "../engine_networking_utils.js";
3
+ import { ContextRegistry } from "../engine_context_registry.js";
4
4
 
5
5
 
6
6
 
src/engine/debug/debug.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { addLog, LogType, setAllowOverlayMessages } from "./debug_overlay";
2
- import { showDebugConsole } from "./debug_console";
3
- import { isLocalNetwork } from "../engine_networking_utils";
1
+ import { addLog, LogType, setAllowOverlayMessages } from "./debug_overlay.js";
2
+ import { showDebugConsole } from "./debug_console.js";
3
+ import { isLocalNetwork } from "../engine_networking_utils.js";
4
4
 
5
5
  export { showDebugConsole }
6
6
  export { LogType, setAllowOverlayMessages };
src/engine-components/DeleteBox.ts CHANGED
@@ -1,10 +1,10 @@
1
1
 
2
2
  import * as THREE from "three";
3
- import { syncDestroy } from "../engine/engine_networking_instantiate";
4
- import { getParam } from "../engine/engine_utils";
5
- import { BoxHelperComponent } from "./BoxHelperComponent";
6
- import { Behaviour, GameObject } from "./Component";
7
- import { UsageMarker } from "./Interactable";
3
+ import { syncDestroy } from "../engine/engine_networking_instantiate.js";
4
+ import { getParam } from "../engine/engine_utils.js";
5
+ import { BoxHelperComponent } from "./BoxHelperComponent.js";
6
+ import { Behaviour, GameObject } from "./Component.js";
7
+ import { UsageMarker } from "./Interactable.js";
8
8
 
9
9
  const debug = getParam("debugdeletable");
10
10
 
src/engine-components/postprocessing/Effects/DepthOfField.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { DepthOfFieldEffect } from "postprocessing";
2
- import { serializable } from "../../../engine/engine_serialization";
3
- import { Mathf } from "../../../engine/engine_math";
4
- import { PostProcessingEffect } from "../PostProcessingEffect";
5
- import { VolumeParameter } from "../VolumeParameter";
6
- import { registerCustomEffectType } from "../VolumeProfile";
7
- import { isMobileDevice } from "../../../engine/engine_utils";
2
+ import { serializable } from "../../../engine/engine_serialization.js";
3
+ import { Mathf } from "../../../engine/engine_math.js";
4
+ import { PostProcessingEffect } from "../PostProcessingEffect.js";
5
+ import { VolumeParameter } from "../VolumeParameter.js";
6
+ import { registerCustomEffectType } from "../VolumeProfile.js";
7
+ import { isMobileDevice } from "../../../engine/engine_utils.js";
8
8
 
9
9
  export enum DepthOfFieldMode {
10
10
  Off = 0,
src/engine-components/DeviceFlag.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { serializable } from "../engine/engine_serialization_decorator";
2
- import { Behaviour, GameObject } from "./Component";
1
+ import { serializable } from "../engine/engine_serialization_decorator.js";
2
+ import { Behaviour, GameObject } from "./Component.js";
3
3
 
4
4
 
5
5
  export enum DeviceType {
src/engine-components/export/usdz/extensions/DocumentExtension.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IUSDExporterExtension } from "../Extension";
1
+ import { IUSDExporterExtension } from "../Extension.js";
2
2
 
3
3
  export class DocumentExtension implements IUSDExporterExtension {
4
4
 
src/engine-components/DragControls.ts CHANGED
@@ -1,20 +1,20 @@
1
- import { GameObject } from "./Component";
2
- import { SyncedTransform } from "./SyncedTransform";
3
- import { IPointerDownHandler, IPointerEnterHandler, IPointerExitHandler, IPointerUpHandler, PointerEventData } from "./ui/PointerEvents";
4
- import { Context } from "../engine/engine_setup";
5
- import { Interactable, UsageMarker } from "./Interactable";
6
- import { Rigidbody } from "./RigidBody";
7
- import { WebXR } from "./webxr/WebXR";
8
- import { Avatar_POI } from "./avatar/Avatar_Brain_LookAt";
9
- import { RaycastOptions } from "../engine/engine_physics";
10
- import { getWorldPosition, setWorldPosition } from "../engine/engine_three_utils";
11
- import { KeyCode } from "../engine/engine_input";
12
- import { nameofFactory } from "../engine/engine_utils";
13
- import { InstancingUtil } from "../engine/engine_instancing";
14
- import { OrbitControls } from "./OrbitControls";
1
+ import { GameObject } from "./Component.js";
2
+ import { SyncedTransform } from "./SyncedTransform.js";
3
+ import { IPointerDownHandler, IPointerEnterHandler, IPointerExitHandler, IPointerUpHandler, PointerEventData } from "./ui/PointerEvents.js";
4
+ import { Context } from "../engine/engine_setup.js";
5
+ import { Interactable, UsageMarker } from "./Interactable.js";
6
+ import { Rigidbody } from "./RigidBody.js";
7
+ import { WebXR } from "./webxr/WebXR.js";
8
+ import { Avatar_POI } from "./avatar/Avatar_Brain_LookAt.js";
9
+ import { RaycastOptions } from "../engine/engine_physics.js";
10
+ import { getWorldPosition, setWorldPosition } from "../engine/engine_three_utils.js";
11
+ import { KeyCode } from "../engine/engine_input.js";
12
+ import { nameofFactory } from "../engine/engine_utils.js";
13
+ import { InstancingUtil } from "../engine/engine_instancing.js";
14
+ import { OrbitControls } from "./OrbitControls.js";
15
15
  import { BufferGeometry, Camera, Color, Line, LineBasicMaterial, Matrix4, Mesh, MeshBasicMaterial, Object3D, Plane, Ray, Raycaster, SphereGeometry, Vector2, Vector3 } from "three";
16
- import { ObjectRaycaster } from "./ui/Raycaster";
17
- import { serializable } from "../engine/engine_serialization_decorator";
16
+ import { ObjectRaycaster } from "./ui/Raycaster.js";
17
+ import { serializable } from "../engine/engine_serialization_decorator.js";
18
18
 
19
19
  const debug = false;
20
20
 
src/engine-components/DropListener.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { Behaviour, GameObject } from "./Component";
2
- import { RaycastOptions } from "../engine/engine_physics";
3
- import * as files from "../engine/engine_networking_files";
4
- import { serializable } from "../engine/engine_serialization_decorator";
5
- import { Networking } from "../engine-components/Networking";
6
- import { GLTF } from "three/examples/jsm/loaders/GLTFLoader";
7
- import { getParam } from "../engine/engine_utils";
1
+ import { Behaviour, GameObject } from "./Component.js";
2
+ import { RaycastOptions } from "../engine/engine_physics.js";
3
+ import * as files from "../engine/engine_networking_files.js";
4
+ import { serializable } from "../engine/engine_serialization_decorator.js";
5
+ import { Networking } from "../engine-components/Networking.js";
6
+ import { GLTF } from "three/examples/jsm/loaders/GLTFLoader.js";
7
+ import { getParam } from "../engine/engine_utils.js";
8
8
 
9
9
  const debug = getParam("debugdroplistener");
10
10
 
src/engine-components/Duplicatable.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { Behaviour, GameObject } from "./Component";
2
- import { WebXRController, ControllerEvents } from "./webxr/WebXRController";
3
- import { DragControls, DragEvents } from "./DragControls";
4
- import { Interactable } from "./Interactable";
5
- import { Animation } from "./Animation";
1
+ import { Behaviour, GameObject } from "./Component.js";
2
+ import { WebXRController, ControllerEvents } from "./webxr/WebXRController.js";
3
+ import { DragControls, DragEvents } from "./DragControls.js";
4
+ import { Interactable } from "./Interactable.js";
5
+ import { Animation } from "./Animation.js";
6
6
  import { Vector3, Quaternion, Object3D } from "three";
7
- import { serializable } from "../engine/engine_serialization_decorator";
8
- import { InstantiateOptions } from "../engine/engine_gameobject";
7
+ import { serializable } from "../engine/engine_serialization_decorator.js";
8
+ import { InstantiateOptions } from "../engine/engine_gameobject.js";
9
9
 
10
10
  export class Duplicatable extends Interactable {
11
11
 
src/engine/engine_addressables.ts CHANGED
@@ -1,14 +1,14 @@
1
- import { getParam, resolveUrl } from "../engine/engine_utils";
2
- import { SerializationContext, TypeSerializer } from "./engine_serialization_core";
3
- import { Context } from "./engine_setup";
1
+ import { getParam, resolveUrl } from "../engine/engine_utils.js";
2
+ import { SerializationContext, TypeSerializer } from "./engine_serialization_core.js";
3
+ import { Context } from "./engine_setup.js";
4
4
  import { Group, Object3D, Texture, TextureLoader } from "three";
5
- import { processNewScripts } from "./engine_mainloop_utils";
6
- import { registerPrefabProvider, syncInstantiate } from "./engine_networking_instantiate";
7
- import { download } from "./engine_web_api";
8
- import { getLoader } from "./engine_gltf";
9
- import { SourceIdentifier } from "./engine_types";
10
- import { destroy, instantiate, InstantiateOptions, isDestroyed } from "./engine_gameobject";
11
- import { IGameObject } from "./engine_types";
5
+ import { processNewScripts } from "./engine_mainloop_utils.js";
6
+ import { registerPrefabProvider, syncInstantiate } from "./engine_networking_instantiate.js";
7
+ import { download } from "./engine_web_api.js";
8
+ import { getLoader } from "./engine_gltf.js";
9
+ import { SourceIdentifier } from "./engine_types.js";
10
+ import { destroy, instantiate, InstantiateOptions, isDestroyed } from "./engine_gameobject.js";
11
+ import { IGameObject } from "./engine_types.js";
12
12
 
13
13
  const debug = getParam("debugaddressables");
14
14
 
src/engine/engine_application.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Context } from "./engine_setup";
1
+ import { Context } from "./engine_setup.js";
2
2
 
3
3
  export enum ApplicationEvents {
4
4
  Visible = "application-visible",
src/engine/engine_assetdatabase.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { InternalUsageTrackerPlugin } from "./extensions/usage_tracker";
1
+ import { InternalUsageTrackerPlugin } from "./extensions/usage_tracker.js";
2
2
  import { Bone, BufferAttribute, BufferGeometry, InterleavedBuffer, InterleavedBufferAttribute, Material, Mesh, NeverCompare, Object3D, Scene, Skeleton, SkinnedMesh, Source, Texture, Uniform, WebGLRenderer } from "three";
3
- import { addPatch } from "./engine_patcher";
4
- import { getParam } from "./engine_utils";
3
+ import { addPatch } from "./engine_patcher.js";
4
+ import { getParam } from "./engine_utils.js";
5
5
 
6
6
 
7
7
  export class AssetDatabase {
src/engine/engine_camera.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ICameraController } from "./engine_types";
1
+ import { ICameraController } from "./engine_types.js";
2
2
  import { Camera } from "three";
3
3
 
4
4
 
src/engine/engine_components_internal.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { IComponent } from "./engine_types";
2
- import { getParam } from "./engine_utils";
1
+ import { IComponent } from "./engine_types.js";
2
+ import { getParam } from "./engine_utils.js";
3
3
 
4
4
  export enum ComponentEvents {
5
5
  Added = "component-added",
src/engine/engine_components.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { Object3D, Scene } from "three";
2
- import { Constructor, ConstructorConcrete, IComponent as Component, IComponent, IGameObject } from "./engine_types";
3
- import { Context, registerComponent } from "./engine_setup";
4
- import { getParam } from "./engine_utils";
5
- import { removeScriptFromContext, updateActiveInHierarchyWithoutEventCall } from "./engine_mainloop_utils";
6
- import { activeInHierarchyFieldName } from "./engine_constants";
7
- import { apply } from "../engine-components/js-extensions/Object3D";
8
- import { InstantiateIdProvider } from "./engine_networking_instantiate";
9
- import { ComponentEvents, ComponentLifecycleEvents } from "./engine_components_internal";
2
+ import { Constructor, ConstructorConcrete, IComponent as Component, IComponent, IGameObject } from "./engine_types.js";
3
+ import { Context, registerComponent } from "./engine_setup.js";
4
+ import { getParam } from "./engine_utils.js";
5
+ import { removeScriptFromContext, updateActiveInHierarchyWithoutEventCall } from "./engine_mainloop_utils.js";
6
+ import { activeInHierarchyFieldName } from "./engine_constants.js";
7
+ import { apply } from "../engine-components/js-extensions/Object3D.js";
8
+ import { InstantiateIdProvider } from "./engine_networking_instantiate.js";
9
+ import { ComponentEvents, ComponentLifecycleEvents } from "./engine_components_internal.js";
10
10
 
11
11
  const debug = getParam("debuggetcomponent");
12
12
 
src/engine/engine_constants.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { getParam } from "../engine/engine_utils";
1
+ import { getParam } from "../engine/engine_utils.js";
2
2
  const debug = getParam("debugdefines");
3
3
 
4
4
  // We jump through hoops like this to support 3 cases:
src/engine/engine_context_registry.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IComponent, IContext, LoadedGLTF } from "./engine_types";
1
+ import { IComponent, IContext, LoadedGLTF } from "./engine_types.js";
2
2
 
3
3
  export enum ContextEvent {
4
4
  /** called when the context is registered to the registry, the context is not fully initialized at this point */
src/engine/engine_context.ts CHANGED
@@ -4,33 +4,33 @@
4
4
  PerspectiveCamera, RGBAFormat, Scene, SRGBColorSpace,
5
5
  Texture, WebGLRenderer, WebGLRendererParameters, WebGLRenderTarget, WebXRArrayCamera
6
6
  } from 'three'
7
- import { Input } from './engine_input';
8
- import { Physics } from './engine_physics';
9
- import { Time } from './engine_time';
10
- import { NetworkConnection } from './engine_networking';
7
+ import { Input } from './engine_input.js';
8
+ import { Physics } from './engine_physics.js';
9
+ import { Time } from './engine_time.js';
10
+ import { NetworkConnection } from './engine_networking.js';
11
11
 
12
- import * as looputils from './engine_mainloop_utils';
13
- import * as utils from "./engine_utils";
12
+ import * as looputils from './engine_mainloop_utils.js';
13
+ import * as utils from "./engine_utils.js";
14
14
 
15
15
  import { EffectComposer, RenderPass } from "postprocessing";
16
16
 
17
- import { AssetDatabase } from './engine_assetdatabase';
17
+ import { AssetDatabase } from './engine_assetdatabase.js';
18
18
 
19