@needle-tools/engine 2.24.0-pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +568 -0
- package/LICENSE.md +10 -0
- package/README.md +11 -0
- package/dist/needle-engine.d.ts +5011 -0
- package/dist/needle-engine.js +6605 -0
- package/dist/needle-engine.js.map +7 -0
- package/dist/needle-engine.min.js +167 -0
- package/dist/needle-engine.min.js.map +7 -0
- package/lib/engine/debug/error_overlay.d.ts +1 -0
- package/lib/engine/debug/error_overlay.js +110 -0
- package/lib/engine/debug/error_overlay.js.map +1 -0
- package/lib/engine/engine.d.ts +27 -0
- package/lib/engine/engine.js +13 -0
- package/lib/engine/engine.js.map +1 -0
- package/lib/engine/engine_addressables.d.ts +46 -0
- package/lib/engine/engine_addressables.js +264 -0
- package/lib/engine/engine_addressables.js.map +1 -0
- package/lib/engine/engine_application.d.ts +13 -0
- package/lib/engine/engine_application.js +35 -0
- package/lib/engine/engine_application.js.map +1 -0
- package/lib/engine/engine_assetdatabase.d.ts +54 -0
- package/lib/engine/engine_assetdatabase.js +150 -0
- package/lib/engine/engine_assetdatabase.js.map +1 -0
- package/lib/engine/engine_caching.d.ts +0 -0
- package/lib/engine/engine_caching.js +2 -0
- package/lib/engine/engine_caching.js.map +1 -0
- package/lib/engine/engine_constants.d.ts +2 -0
- package/lib/engine/engine_constants.js +3 -0
- package/lib/engine/engine_constants.js.map +1 -0
- package/lib/engine/engine_coroutine.d.ts +3 -0
- package/lib/engine/engine_coroutine.js +14 -0
- package/lib/engine/engine_coroutine.js.map +1 -0
- package/lib/engine/engine_default_parameters.d.ts +2 -0
- package/lib/engine/engine_default_parameters.js +4 -0
- package/lib/engine/engine_default_parameters.js.map +1 -0
- package/lib/engine/engine_element.d.ts +32 -0
- package/lib/engine/engine_element.js +340 -0
- package/lib/engine/engine_element.js.map +1 -0
- package/lib/engine/engine_element_loading.d.ts +31 -0
- package/lib/engine/engine_element_loading.js +154 -0
- package/lib/engine/engine_element_loading.js.map +1 -0
- package/lib/engine/engine_element_overlay.d.ts +17 -0
- package/lib/engine/engine_element_overlay.js +95 -0
- package/lib/engine/engine_element_overlay.js.map +1 -0
- package/lib/engine/engine_gizmos.d.ts +2 -0
- package/lib/engine/engine_gizmos.js +14 -0
- package/lib/engine/engine_gizmos.js.map +1 -0
- package/lib/engine/engine_gltf.d.ts +2 -0
- package/lib/engine/engine_gltf.js +2 -0
- package/lib/engine/engine_gltf.js.map +1 -0
- package/lib/engine/engine_gltf_builtin_components.d.ts +8 -0
- package/lib/engine/engine_gltf_builtin_components.js +251 -0
- package/lib/engine/engine_gltf_builtin_components.js.map +1 -0
- package/lib/engine/engine_input.d.ts +193 -0
- package/lib/engine/engine_input.js +566 -0
- package/lib/engine/engine_input.js.map +1 -0
- package/lib/engine/engine_input_utils.d.ts +2 -0
- package/lib/engine/engine_input_utils.js +23 -0
- package/lib/engine/engine_input_utils.js.map +1 -0
- package/lib/engine/engine_lightdata.d.ts +21 -0
- package/lib/engine/engine_lightdata.js +85 -0
- package/lib/engine/engine_lightdata.js.map +1 -0
- package/lib/engine/engine_loaders.d.ts +3 -0
- package/lib/engine/engine_loaders.js +20 -0
- package/lib/engine/engine_loaders.js.map +1 -0
- package/lib/engine/engine_mainloop_utils.d.ts +9 -0
- package/lib/engine/engine_mainloop_utils.js +288 -0
- package/lib/engine/engine_mainloop_utils.js.map +1 -0
- package/lib/engine/engine_math.d.ts +11 -0
- package/lib/engine/engine_math.js +40 -0
- package/lib/engine/engine_math.js.map +1 -0
- package/lib/engine/engine_networking.d.ts +133 -0
- package/lib/engine/engine_networking.js +541 -0
- package/lib/engine/engine_networking.js.map +1 -0
- package/lib/engine/engine_networking_auto.d.ts +18 -0
- package/lib/engine/engine_networking_auto.js +252 -0
- package/lib/engine/engine_networking_auto.js.map +1 -0
- package/lib/engine/engine_networking_files.d.ts +23 -0
- package/lib/engine/engine_networking_files.js +173 -0
- package/lib/engine/engine_networking_files.js.map +1 -0
- package/lib/engine/engine_networking_files_default_components.d.ts +3 -0
- package/lib/engine/engine_networking_files_default_components.js +45 -0
- package/lib/engine/engine_networking_files_default_components.js.map +1 -0
- package/lib/engine/engine_networking_instantiate.d.ts +34 -0
- package/lib/engine/engine_networking_instantiate.js +274 -0
- package/lib/engine/engine_networking_instantiate.js.map +1 -0
- package/lib/engine/engine_networking_peer.d.ts +10 -0
- package/lib/engine/engine_networking_peer.js +106 -0
- package/lib/engine/engine_networking_peer.js.map +1 -0
- package/lib/engine/engine_networking_utils.d.ts +1 -0
- package/lib/engine/engine_networking_utils.js +11 -0
- package/lib/engine/engine_networking_utils.js.map +1 -0
- package/lib/engine/engine_networking_websocket.d.ts +0 -0
- package/lib/engine/engine_networking_websocket.js +3 -0
- package/lib/engine/engine_networking_websocket.js.map +1 -0
- package/lib/engine/engine_physics.d.ts +88 -0
- package/lib/engine/engine_physics.js +563 -0
- package/lib/engine/engine_physics.js.map +1 -0
- package/lib/engine/engine_rendererdata.d.ts +48 -0
- package/lib/engine/engine_rendererdata.js +182 -0
- package/lib/engine/engine_rendererdata.js.map +1 -0
- package/lib/engine/engine_scenetools.d.ts +25 -0
- package/lib/engine/engine_scenetools.js +211 -0
- package/lib/engine/engine_scenetools.js.map +1 -0
- package/lib/engine/engine_serialization.d.ts +3 -0
- package/lib/engine/engine_serialization.js +5 -0
- package/lib/engine/engine_serialization.js.map +1 -0
- package/lib/engine/engine_serialization_builtin_serializer.d.ts +49 -0
- package/lib/engine/engine_serialization_builtin_serializer.js +238 -0
- package/lib/engine/engine_serialization_builtin_serializer.js.map +1 -0
- package/lib/engine/engine_serialization_core.d.ts +70 -0
- package/lib/engine/engine_serialization_core.js +417 -0
- package/lib/engine/engine_serialization_core.js.map +1 -0
- package/lib/engine/engine_serialization_decorator.d.ts +9 -0
- package/lib/engine/engine_serialization_decorator.js +44 -0
- package/lib/engine/engine_serialization_decorator.js.map +1 -0
- package/lib/engine/engine_setup.d.ts +129 -0
- package/lib/engine/engine_setup.js +609 -0
- package/lib/engine/engine_setup.js.map +1 -0
- package/lib/engine/engine_shaders.d.ts +31 -0
- package/lib/engine/engine_shaders.js +230 -0
- package/lib/engine/engine_shaders.js.map +1 -0
- package/lib/engine/engine_three_utils.d.ts +20 -0
- package/lib/engine/engine_three_utils.js +247 -0
- package/lib/engine/engine_three_utils.js.map +1 -0
- package/lib/engine/engine_time.d.ts +13 -0
- package/lib/engine/engine_time.js +31 -0
- package/lib/engine/engine_time.js.map +1 -0
- package/lib/engine/engine_typestore.d.ts +7 -0
- package/lib/engine/engine_typestore.js +17 -0
- package/lib/engine/engine_typestore.js.map +1 -0
- package/lib/engine/engine_utils.d.ts +34 -0
- package/lib/engine/engine_utils.js +239 -0
- package/lib/engine/engine_utils.js.map +1 -0
- package/lib/engine/engine_web_api.d.ts +12 -0
- package/lib/engine/engine_web_api.js +114 -0
- package/lib/engine/engine_web_api.js.map +1 -0
- package/lib/engine/extensions/KHR_animation_pointer.d.ts +0 -0
- package/lib/engine/extensions/KHR_animation_pointer.js +385 -0
- package/lib/engine/extensions/KHR_animation_pointer.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_animator_controller.d.ts +0 -0
- package/lib/engine/extensions/NEEDLE_animator_controller.js +59 -0
- package/lib/engine/extensions/NEEDLE_animator_controller.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_animator_controller_model.d.ts +108 -0
- package/lib/engine/extensions/NEEDLE_animator_controller_model.js +92 -0
- package/lib/engine/extensions/NEEDLE_animator_controller_model.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_components.d.ts +32 -0
- package/lib/engine/extensions/NEEDLE_components.js +193 -0
- package/lib/engine/extensions/NEEDLE_components.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_deferred_texture.d.ts +18 -0
- package/lib/engine/extensions/NEEDLE_deferred_texture.js +149 -0
- package/lib/engine/extensions/NEEDLE_deferred_texture.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_gameobject_data.d.ts +10 -0
- package/lib/engine/extensions/NEEDLE_gameobject_data.js +54 -0
- package/lib/engine/extensions/NEEDLE_gameobject_data.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_lighting_settings.d.ts +35 -0
- package/lib/engine/extensions/NEEDLE_lighting_settings.js +136 -0
- package/lib/engine/extensions/NEEDLE_lighting_settings.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_lightmaps.d.ts +17 -0
- package/lib/engine/extensions/NEEDLE_lightmaps.js +69 -0
- package/lib/engine/extensions/NEEDLE_lightmaps.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_persistent_assets.d.ts +11 -0
- package/lib/engine/extensions/NEEDLE_persistent_assets.js +64 -0
- package/lib/engine/extensions/NEEDLE_persistent_assets.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_render_objects.d.ts +12 -0
- package/lib/engine/extensions/NEEDLE_render_objects.js +144 -0
- package/lib/engine/extensions/NEEDLE_render_objects.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_techniques_webgl.d.ts +39 -0
- package/lib/engine/extensions/NEEDLE_techniques_webgl.js +419 -0
- package/lib/engine/extensions/NEEDLE_techniques_webgl.js.map +1 -0
- package/lib/engine/extensions/NEEDLE_timeline.d.ts +0 -0
- package/lib/engine/extensions/NEEDLE_timeline.js +57 -0
- package/lib/engine/extensions/NEEDLE_timeline.js.map +1 -0
- package/lib/engine/extensions/extension_resolver.d.ts +4 -0
- package/lib/engine/extensions/extension_resolver.js +2 -0
- package/lib/engine/extensions/extension_resolver.js.map +1 -0
- package/lib/engine/extensions/extension_utils.d.ts +2 -0
- package/lib/engine/extensions/extension_utils.js +130 -0
- package/lib/engine/extensions/extension_utils.js.map +1 -0
- package/lib/engine/extensions/extensions.d.ts +6 -0
- package/lib/engine/extensions/extensions.js +41 -0
- package/lib/engine/extensions/extensions.js.map +1 -0
- package/lib/engine/shaders/shaderData.d.ts +55 -0
- package/lib/engine/shaders/shaderData.js +59 -0
- package/lib/engine/shaders/shaderData.js.map +1 -0
- package/lib/engine/tests/simulate_avatars.d.ts +0 -0
- package/lib/engine/tests/simulate_avatars.js +3 -0
- package/lib/engine/tests/simulate_avatars.js.map +1 -0
- package/lib/engine/tests/test_utils.d.ts +2 -0
- package/lib/engine/tests/test_utils.js +54 -0
- package/lib/engine/tests/test_utils.js.map +1 -0
- package/lib/engine-components/AlignmentConstraint.d.ts +10 -0
- package/lib/engine-components/AlignmentConstraint.js +27 -0
- package/lib/engine-components/AlignmentConstraint.js.map +1 -0
- package/lib/engine-components/Animation.d.ts +44 -0
- package/lib/engine-components/Animation.js +257 -0
- package/lib/engine-components/Animation.js.map +1 -0
- package/lib/engine-components/AnimationCurve.d.ts +15 -0
- package/lib/engine-components/AnimationCurve.js +62 -0
- package/lib/engine-components/AnimationCurve.js.map +1 -0
- package/lib/engine-components/Animator.d.ts +48 -0
- package/lib/engine-components/Animator.js +126 -0
- package/lib/engine-components/Animator.js.map +1 -0
- package/lib/engine-components/AnimatorController.d.ts +39 -0
- package/lib/engine-components/AnimatorController.js +687 -0
- package/lib/engine-components/AnimatorController.js.map +1 -0
- package/lib/engine-components/AudioListener.d.ts +7 -0
- package/lib/engine-components/AudioListener.js +29 -0
- package/lib/engine-components/AudioListener.js.map +1 -0
- package/lib/engine-components/AudioSource.d.ts +61 -0
- package/lib/engine-components/AudioSource.js +377 -0
- package/lib/engine-components/AudioSource.js.map +1 -0
- package/lib/engine-components/AvatarLoader.d.ts +22 -0
- package/lib/engine-components/AvatarLoader.js +203 -0
- package/lib/engine-components/AvatarLoader.js.map +1 -0
- package/lib/engine-components/AxesHelper.d.ts +9 -0
- package/lib/engine-components/AxesHelper.js +43 -0
- package/lib/engine-components/AxesHelper.js.map +1 -0
- package/lib/engine-components/BasicIKConstraint.d.ts +9 -0
- package/lib/engine-components/BasicIKConstraint.js +44 -0
- package/lib/engine-components/BasicIKConstraint.js.map +1 -0
- package/lib/engine-components/BoxCollider.d.ts +2 -0
- package/lib/engine-components/BoxCollider.js +3 -0
- package/lib/engine-components/BoxCollider.js.map +1 -0
- package/lib/engine-components/BoxHelperComponent.d.ts +16 -0
- package/lib/engine-components/BoxHelperComponent.js +72 -0
- package/lib/engine-components/BoxHelperComponent.js.map +1 -0
- package/lib/engine-components/Camera.d.ts +38 -0
- package/lib/engine-components/Camera.js +258 -0
- package/lib/engine-components/Camera.js.map +1 -0
- package/lib/engine-components/Collider.d.ts +21 -0
- package/lib/engine-components/Collider.js +65 -0
- package/lib/engine-components/Collider.js.map +1 -0
- package/lib/engine-components/Component.d.ts +165 -0
- package/lib/engine-components/Component.js +895 -0
- package/lib/engine-components/Component.js.map +1 -0
- package/lib/engine-components/ComponentExtensions.d.ts +2 -0
- package/lib/engine-components/ComponentExtensions.js +3 -0
- package/lib/engine-components/ComponentExtensions.js.map +1 -0
- package/lib/engine-components/DeleteBox.d.ts +9 -0
- package/lib/engine-components/DeleteBox.js +27 -0
- package/lib/engine-components/DeleteBox.js.map +1 -0
- package/lib/engine-components/DeviceFlag.d.ts +12 -0
- package/lib/engine-components/DeviceFlag.js +50 -0
- package/lib/engine-components/DeviceFlag.js.map +1 -0
- package/lib/engine-components/DragControls.d.ts +44 -0
- package/lib/engine-components/DragControls.js +465 -0
- package/lib/engine-components/DragControls.js.map +1 -0
- package/lib/engine-components/DropListener.d.ts +15 -0
- package/lib/engine-components/DropListener.js +102 -0
- package/lib/engine-components/DropListener.js.map +1 -0
- package/lib/engine-components/Duplicatable.d.ts +16 -0
- package/lib/engine-components/Duplicatable.js +150 -0
- package/lib/engine-components/Duplicatable.js.map +1 -0
- package/lib/engine-components/EventList.d.ts +22 -0
- package/lib/engine-components/EventList.js +97 -0
- package/lib/engine-components/EventList.js.map +1 -0
- package/lib/engine-components/EventTrigger.d.ts +3 -0
- package/lib/engine-components/EventTrigger.js +4 -0
- package/lib/engine-components/EventTrigger.js.map +1 -0
- package/lib/engine-components/EventType.d.ts +19 -0
- package/lib/engine-components/EventType.js +72 -0
- package/lib/engine-components/EventType.js.map +1 -0
- package/lib/engine-components/FlyControls.d.ts +7 -0
- package/lib/engine-components/FlyControls.js +22 -0
- package/lib/engine-components/FlyControls.js.map +1 -0
- package/lib/engine-components/Gizmos.d.ts +12 -0
- package/lib/engine-components/Gizmos.js +61 -0
- package/lib/engine-components/Gizmos.js.map +1 -0
- package/lib/engine-components/GltfExport.d.ts +28 -0
- package/lib/engine-components/GltfExport.js +201 -0
- package/lib/engine-components/GltfExport.js.map +1 -0
- package/lib/engine-components/GridHelper.d.ts +11 -0
- package/lib/engine-components/GridHelper.js +41 -0
- package/lib/engine-components/GridHelper.js.map +1 -0
- package/lib/engine-components/GroundProjection.d.ts +18 -0
- package/lib/engine-components/GroundProjection.js +77 -0
- package/lib/engine-components/GroundProjection.js.map +1 -0
- package/lib/engine-components/Interactable.d.ts +10 -0
- package/lib/engine-components/Interactable.js +13 -0
- package/lib/engine-components/Interactable.js.map +1 -0
- package/lib/engine-components/LODGroup.d.ts +29 -0
- package/lib/engine-components/LODGroup.js +176 -0
- package/lib/engine-components/LODGroup.js.map +1 -0
- package/lib/engine-components/Light.d.ts +69 -0
- package/lib/engine-components/Light.js +407 -0
- package/lib/engine-components/Light.js.map +1 -0
- package/lib/engine-components/LookAtConstraint.d.ts +7 -0
- package/lib/engine-components/LookAtConstraint.js +18 -0
- package/lib/engine-components/LookAtConstraint.js.map +1 -0
- package/lib/engine-components/MeshCollider.d.ts +4 -0
- package/lib/engine-components/MeshCollider.js +8 -0
- package/lib/engine-components/MeshCollider.js.map +1 -0
- package/lib/engine-components/NavMesh.d.ts +5 -0
- package/lib/engine-components/NavMesh.js +11 -0
- package/lib/engine-components/NavMesh.js.map +1 -0
- package/lib/engine-components/NestedGltf.d.ts +10 -0
- package/lib/engine-components/NestedGltf.js +61 -0
- package/lib/engine-components/NestedGltf.js.map +1 -0
- package/lib/engine-components/Networking.d.ts +9 -0
- package/lib/engine-components/Networking.js +47 -0
- package/lib/engine-components/Networking.js.map +1 -0
- package/lib/engine-components/OffsetConstraint.d.ts +11 -0
- package/lib/engine-components/OffsetConstraint.js +31 -0
- package/lib/engine-components/OffsetConstraint.js.map +1 -0
- package/lib/engine-components/OrbitControls.d.ts +45 -0
- package/lib/engine-components/OrbitControls.js +247 -0
- package/lib/engine-components/OrbitControls.js.map +1 -0
- package/lib/engine-components/ParticleSystem.d.ts +34 -0
- package/lib/engine-components/ParticleSystem.js +216 -0
- package/lib/engine-components/ParticleSystem.js.map +1 -0
- package/lib/engine-components/ParticleSystemModules.d.ts +93 -0
- package/lib/engine-components/ParticleSystemModules.js +167 -0
- package/lib/engine-components/ParticleSystemModules.js.map +1 -0
- package/lib/engine-components/PlayerColor.d.ts +13 -0
- package/lib/engine-components/PlayerColor.js +85 -0
- package/lib/engine-components/PlayerColor.js.map +1 -0
- package/lib/engine-components/Renderer.d.ts +72 -0
- package/lib/engine-components/Renderer.js +678 -0
- package/lib/engine-components/Renderer.js.map +1 -0
- package/lib/engine-components/RendererLightmap.d.ts +23 -0
- package/lib/engine-components/RendererLightmap.js +128 -0
- package/lib/engine-components/RendererLightmap.js.map +1 -0
- package/lib/engine-components/Rigidbody.d.ts +42 -0
- package/lib/engine-components/Rigidbody.js +170 -0
- package/lib/engine-components/Rigidbody.js.map +1 -0
- package/lib/engine-components/ScreenCapture.d.ts +9 -0
- package/lib/engine-components/ScreenCapture.js +44 -0
- package/lib/engine-components/ScreenCapture.js.map +1 -0
- package/lib/engine-components/ShadowCatcher.d.ts +15 -0
- package/lib/engine-components/ShadowCatcher.js +94 -0
- package/lib/engine-components/ShadowCatcher.js.map +1 -0
- package/lib/engine-components/Skybox.d.ts +16 -0
- package/lib/engine-components/Skybox.js +121 -0
- package/lib/engine-components/Skybox.js.map +1 -0
- package/lib/engine-components/SmoothFollow.d.ts +13 -0
- package/lib/engine-components/SmoothFollow.js +57 -0
- package/lib/engine-components/SmoothFollow.js.map +1 -0
- package/lib/engine-components/SpatialTrigger.d.ts +27 -0
- package/lib/engine-components/SpatialTrigger.js +145 -0
- package/lib/engine-components/SpatialTrigger.js.map +1 -0
- package/lib/engine-components/SpectatorCamera.d.ts +36 -0
- package/lib/engine-components/SpectatorCamera.js +311 -0
- package/lib/engine-components/SpectatorCamera.js.map +1 -0
- package/lib/engine-components/SphereCollider.d.ts +2 -0
- package/lib/engine-components/SphereCollider.js +3 -0
- package/lib/engine-components/SphereCollider.js.map +1 -0
- package/lib/engine-components/SpringJoint.d.ts +13 -0
- package/lib/engine-components/SpringJoint.js +42 -0
- package/lib/engine-components/SpringJoint.js.map +1 -0
- package/lib/engine-components/SpriteRenderer.d.ts +33 -0
- package/lib/engine-components/SpriteRenderer.js +141 -0
- package/lib/engine-components/SpriteRenderer.js.map +1 -0
- package/lib/engine-components/SyncedCamera.d.ts +23 -0
- package/lib/engine-components/SyncedCamera.js +188 -0
- package/lib/engine-components/SyncedCamera.js.map +1 -0
- package/lib/engine-components/SyncedRoom.d.ts +20 -0
- package/lib/engine-components/SyncedRoom.js +151 -0
- package/lib/engine-components/SyncedRoom.js.map +1 -0
- package/lib/engine-components/SyncedTransform.d.ts +35 -0
- package/lib/engine-components/SyncedTransform.js +268 -0
- package/lib/engine-components/SyncedTransform.js.map +1 -0
- package/lib/engine-components/TestRunner.d.ts +13 -0
- package/lib/engine-components/TestRunner.js +100 -0
- package/lib/engine-components/TestRunner.js.map +1 -0
- package/lib/engine-components/TransformGizmo.d.ts +15 -0
- package/lib/engine-components/TransformGizmo.js +166 -0
- package/lib/engine-components/TransformGizmo.js.map +1 -0
- package/lib/engine-components/VideoPlayer.d.ts +55 -0
- package/lib/engine-components/VideoPlayer.js +307 -0
- package/lib/engine-components/VideoPlayer.js.map +1 -0
- package/lib/engine-components/Voip.d.ts +22 -0
- package/lib/engine-components/Voip.js +400 -0
- package/lib/engine-components/Voip.js.map +1 -0
- package/lib/engine-components/Volume.d.ts +30 -0
- package/lib/engine-components/Volume.js +86 -0
- package/lib/engine-components/Volume.js.map +1 -0
- package/lib/engine-components/WebARSessionRoot.d.ts +21 -0
- package/lib/engine-components/WebARSessionRoot.js +105 -0
- package/lib/engine-components/WebARSessionRoot.js.map +1 -0
- package/lib/engine-components/WebXR.d.ts +90 -0
- package/lib/engine-components/WebXR.js +498 -0
- package/lib/engine-components/WebXR.js.map +1 -0
- package/lib/engine-components/WebXRAvatar.d.ts +59 -0
- package/lib/engine-components/WebXRAvatar.js +263 -0
- package/lib/engine-components/WebXRAvatar.js.map +1 -0
- package/lib/engine-components/WebXRController.d.ts +145 -0
- package/lib/engine-components/WebXRController.js +924 -0
- package/lib/engine-components/WebXRController.js.map +1 -0
- package/lib/engine-components/WebXRGrabRendering.d.ts +42 -0
- package/lib/engine-components/WebXRGrabRendering.js +138 -0
- package/lib/engine-components/WebXRGrabRendering.js.map +1 -0
- package/lib/engine-components/WebXRRig.d.ts +4 -0
- package/lib/engine-components/WebXRRig.js +8 -0
- package/lib/engine-components/WebXRRig.js.map +1 -0
- package/lib/engine-components/WebXRSync.d.ts +54 -0
- package/lib/engine-components/WebXRSync.js +405 -0
- package/lib/engine-components/WebXRSync.js.map +1 -0
- package/lib/engine-components/XRFlag.d.ts +32 -0
- package/lib/engine-components/XRFlag.js +115 -0
- package/lib/engine-components/XRFlag.js.map +1 -0
- package/lib/engine-components/avatar/AvatarBlink_Simple.d.ts +10 -0
- package/lib/engine-components/avatar/AvatarBlink_Simple.js +76 -0
- package/lib/engine-components/avatar/AvatarBlink_Simple.js.map +1 -0
- package/lib/engine-components/avatar/AvatarEyeLook_Rotation.d.ts +13 -0
- package/lib/engine-components/avatar/AvatarEyeLook_Rotation.js +75 -0
- package/lib/engine-components/avatar/AvatarEyeLook_Rotation.js.map +1 -0
- package/lib/engine-components/avatar/Avatar_Brain_LookAt.d.ts +27 -0
- package/lib/engine-components/avatar/Avatar_Brain_LookAt.js +120 -0
- package/lib/engine-components/avatar/Avatar_Brain_LookAt.js.map +1 -0
- package/lib/engine-components/avatar/Avatar_MouthShapes.d.ts +13 -0
- package/lib/engine-components/avatar/Avatar_MouthShapes.js +77 -0
- package/lib/engine-components/avatar/Avatar_MouthShapes.js.map +1 -0
- package/lib/engine-components/avatar/Avatar_MustacheShake.d.ts +8 -0
- package/lib/engine-components/avatar/Avatar_MustacheShake.js +29 -0
- package/lib/engine-components/avatar/Avatar_MustacheShake.js.map +1 -0
- package/lib/engine-components/codegen/exports.d.ts +140 -0
- package/lib/engine-components/codegen/exports.js +142 -0
- package/lib/engine-components/codegen/exports.js.map +1 -0
- package/lib/engine-components/debug/LogStats.d.ts +5 -0
- package/lib/engine-components/debug/LogStats.js +19 -0
- package/lib/engine-components/debug/LogStats.js.map +1 -0
- package/lib/engine-components/js-extensions/RGBAColor.d.ts +9 -0
- package/lib/engine-components/js-extensions/RGBAColor.js +35 -0
- package/lib/engine-components/js-extensions/RGBAColor.js.map +1 -0
- package/lib/engine-components/timeline/PlayableDirector.d.ts +66 -0
- package/lib/engine-components/timeline/PlayableDirector.js +460 -0
- package/lib/engine-components/timeline/PlayableDirector.js.map +1 -0
- package/lib/engine-components/timeline/SignalAsset.d.ts +19 -0
- package/lib/engine-components/timeline/SignalAsset.js +87 -0
- package/lib/engine-components/timeline/SignalAsset.js.map +1 -0
- package/lib/engine-components/timeline/TimelineModels.d.ts +86 -0
- package/lib/engine-components/timeline/TimelineModels.js +23 -0
- package/lib/engine-components/timeline/TimelineModels.js.map +1 -0
- package/lib/engine-components/timeline/TimelineTracks.d.ts +73 -0
- package/lib/engine-components/timeline/TimelineTracks.js +573 -0
- package/lib/engine-components/timeline/TimelineTracks.js.map +1 -0
- package/lib/engine-components/ui/BaseUIComponent.d.ts +24 -0
- package/lib/engine-components/ui/BaseUIComponent.js +129 -0
- package/lib/engine-components/ui/BaseUIComponent.js.map +1 -0
- package/lib/engine-components/ui/Button.d.ts +55 -0
- package/lib/engine-components/ui/Button.js +217 -0
- package/lib/engine-components/ui/Button.js.map +1 -0
- package/lib/engine-components/ui/Canvas.d.ts +39 -0
- package/lib/engine-components/ui/Canvas.js +169 -0
- package/lib/engine-components/ui/Canvas.js.map +1 -0
- package/lib/engine-components/ui/CanvasGroup.d.ts +14 -0
- package/lib/engine-components/ui/CanvasGroup.js +53 -0
- package/lib/engine-components/ui/CanvasGroup.js.map +1 -0
- package/lib/engine-components/ui/EventSystem.d.ts +44 -0
- package/lib/engine-components/ui/EventSystem.js +480 -0
- package/lib/engine-components/ui/EventSystem.js.map +1 -0
- package/lib/engine-components/ui/Graphic.d.ts +33 -0
- package/lib/engine-components/ui/Graphic.js +145 -0
- package/lib/engine-components/ui/Graphic.js.map +1 -0
- package/lib/engine-components/ui/Image.d.ts +20 -0
- package/lib/engine-components/ui/Image.js +61 -0
- package/lib/engine-components/ui/Image.js.map +1 -0
- package/lib/engine-components/ui/InputField.d.ts +25 -0
- package/lib/engine-components/ui/InputField.js +179 -0
- package/lib/engine-components/ui/InputField.js.map +1 -0
- package/lib/engine-components/ui/Interfaces.d.ts +7 -0
- package/lib/engine-components/ui/Interfaces.js +2 -0
- package/lib/engine-components/ui/Interfaces.js.map +1 -0
- package/lib/engine-components/ui/Keyboard.d.ts +31 -0
- package/lib/engine-components/ui/Keyboard.js +177 -0
- package/lib/engine-components/ui/Keyboard.js.map +1 -0
- package/lib/engine-components/ui/Layout.d.ts +10 -0
- package/lib/engine-components/ui/Layout.js +11 -0
- package/lib/engine-components/ui/Layout.js.map +1 -0
- package/lib/engine-components/ui/PointerEvents.d.ts +35 -0
- package/lib/engine-components/ui/PointerEvents.js +20 -0
- package/lib/engine-components/ui/PointerEvents.js.map +1 -0
- package/lib/engine-components/ui/Raycaster.d.ts +20 -0
- package/lib/engine-components/ui/Raycaster.js +40 -0
- package/lib/engine-components/ui/Raycaster.js.map +1 -0
- package/lib/engine-components/ui/RectTransform.d.ts +39 -0
- package/lib/engine-components/ui/RectTransform.js +173 -0
- package/lib/engine-components/ui/RectTransform.js.map +1 -0
- package/lib/engine-components/ui/SpatialHtml.d.ts +6 -0
- package/lib/engine-components/ui/SpatialHtml.js +58 -0
- package/lib/engine-components/ui/SpatialHtml.js.map +1 -0
- package/lib/engine-components/ui/Text.d.ts +68 -0
- package/lib/engine-components/ui/Text.js +631 -0
- package/lib/engine-components/ui/Text.js.map +1 -0
- package/lib/engine-components/ui/Utils.d.ts +19 -0
- package/lib/engine-components/ui/Utils.js +85 -0
- package/lib/engine-components/ui/Utils.js.map +1 -0
- package/lib/engine-schemes/schemes.d.ts +4 -0
- package/lib/engine-schemes/schemes.js +20 -0
- package/lib/engine-schemes/schemes.js.map +1 -0
- package/lib/engine-schemes/synced-camera-model.d.ts +25 -0
- package/lib/engine-schemes/synced-camera-model.js +68 -0
- package/lib/engine-schemes/synced-camera-model.js.map +1 -0
- package/lib/engine-schemes/synced-transform-model.d.ts +31 -0
- package/lib/engine-schemes/synced-transform-model.js +67 -0
- package/lib/engine-schemes/synced-transform-model.js.map +1 -0
- package/lib/engine-schemes/transform.d.ts +12 -0
- package/lib/engine-schemes/transform.js +40 -0
- package/lib/engine-schemes/transform.js.map +1 -0
- package/lib/engine-schemes/vec3.d.ts +11 -0
- package/lib/engine-schemes/vec3.js +30 -0
- package/lib/engine-schemes/vec3.js.map +1 -0
- package/lib/engine-schemes/vec4.d.ts +12 -0
- package/lib/engine-schemes/vec4.js +34 -0
- package/lib/engine-schemes/vec4.js.map +1 -0
- package/lib/engine-schemes/vr-user-state-buffer.d.ts +36 -0
- package/lib/engine-schemes/vr-user-state-buffer.js +104 -0
- package/lib/engine-schemes/vr-user-state-buffer.js.map +1 -0
- package/lib/needle-engine.d.ts +5 -0
- package/lib/needle-engine.js +34 -0
- package/lib/needle-engine.js.map +1 -0
- package/package.json +63 -0
- package/src/engine/codegen/register_types.js +297 -0
- package/src/engine/debug/error_overlay.ts +122 -0
- package/src/engine/engine.ts +15 -0
- package/src/engine/engine_addressables.ts +297 -0
- package/src/engine/engine_application.ts +42 -0
- package/src/engine/engine_assetdatabase.ts +215 -0
- package/src/engine/engine_caching.ts +0 -0
- package/src/engine/engine_components.js +202 -0
- package/src/engine/engine_constants.ts +3 -0
- package/src/engine/engine_coroutine.ts +16 -0
- package/src/engine/engine_default_parameters.ts +4 -0
- package/src/engine/engine_element.ts +380 -0
- package/src/engine/engine_element_loading.ts +178 -0
- package/src/engine/engine_element_overlay.ts +108 -0
- package/src/engine/engine_fileloader.js +9 -0
- package/src/engine/engine_generic_utils.js +14 -0
- package/src/engine/engine_gizmos.ts +15 -0
- package/src/engine/engine_gltf.ts +4 -0
- package/src/engine/engine_gltf_builtin_components.ts +298 -0
- package/src/engine/engine_input.ts +581 -0
- package/src/engine/engine_input_utils.ts +24 -0
- package/src/engine/engine_lightdata.ts +111 -0
- package/src/engine/engine_loaders.ts +26 -0
- package/src/engine/engine_mainloop_utils.ts +292 -0
- package/src/engine/engine_math.ts +43 -0
- package/src/engine/engine_networking.ts +664 -0
- package/src/engine/engine_networking_auto.ts +300 -0
- package/src/engine/engine_networking_files.ts +198 -0
- package/src/engine/engine_networking_files_default_components.ts +54 -0
- package/src/engine/engine_networking_instantiate.ts +321 -0
- package/src/engine/engine_networking_peer.ts +128 -0
- package/src/engine/engine_networking_utils.ts +12 -0
- package/src/engine/engine_networking_websocket.ts +1 -0
- package/src/engine/engine_physics.ts +652 -0
- package/src/engine/engine_rendererdata.ts +214 -0
- package/src/engine/engine_scenetools.ts +231 -0
- package/src/engine/engine_serialization.ts +4 -0
- package/src/engine/engine_serialization_builtin_serializer.ts +266 -0
- package/src/engine/engine_serialization_core.ts +513 -0
- package/src/engine/engine_serialization_decorator.ts +55 -0
- package/src/engine/engine_setup.ts +705 -0
- package/src/engine/engine_shaders.ts +243 -0
- package/src/engine/engine_three_utils.ts +290 -0
- package/src/engine/engine_time.ts +38 -0
- package/src/engine/engine_typestore.ts +21 -0
- package/src/engine/engine_utils.ts +268 -0
- package/src/engine/engine_web_api.ts +122 -0
- package/src/engine/extensions/EXT_texture_exr.js +42 -0
- package/src/engine/extensions/KHR_animation_pointer.ts +484 -0
- package/src/engine/extensions/NEEDLE_animator_controller.ts +68 -0
- package/src/engine/extensions/NEEDLE_animator_controller_model.ts +185 -0
- package/src/engine/extensions/NEEDLE_components.ts +234 -0
- package/src/engine/extensions/NEEDLE_deferred_texture.ts +175 -0
- package/src/engine/extensions/NEEDLE_gameobject_data.ts +76 -0
- package/src/engine/extensions/NEEDLE_lighting_settings.ts +161 -0
- package/src/engine/extensions/NEEDLE_lightmaps.ts +93 -0
- package/src/engine/extensions/NEEDLE_persistent_assets.ts +76 -0
- package/src/engine/extensions/NEEDLE_render_objects.ts +197 -0
- package/src/engine/extensions/NEEDLE_techniques_webgl.ts +482 -0
- package/src/engine/extensions/NEEDLE_timeline.ts +68 -0
- package/src/engine/extensions/extension_resolver.ts +5 -0
- package/src/engine/extensions/extension_utils.ts +138 -0
- package/src/engine/extensions/extensions.ts +49 -0
- package/src/engine/shaders/shaderData.ts +68 -0
- package/src/engine/tests/simulate_avatars.ts +2 -0
- package/src/engine/tests/test_utils.ts +63 -0
- package/src/engine-components/AlignmentConstraint.ts +33 -0
- package/src/engine-components/Animation.ts +282 -0
- package/src/engine-components/AnimationCurve.ts +42 -0
- package/src/engine-components/Animator.ts +148 -0
- package/src/engine-components/AnimatorController.ts +799 -0
- package/src/engine-components/AudioListener.ts +32 -0
- package/src/engine-components/AudioSource.ts +383 -0
- package/src/engine-components/AvatarLoader.ts +240 -0
- package/src/engine-components/AxesHelper.ts +32 -0
- package/src/engine-components/BasicIKConstraint.ts +54 -0
- package/src/engine-components/BoxCollider.ts +2 -0
- package/src/engine-components/BoxHelperComponent.ts +83 -0
- package/src/engine-components/Camera.ts +261 -0
- package/src/engine-components/Collider.ts +72 -0
- package/src/engine-components/Component.ts +1042 -0
- package/src/engine-components/ComponentExtensions.ts +7 -0
- package/src/engine-components/DeleteBox.ts +34 -0
- package/src/engine-components/DeviceFlag.ts +46 -0
- package/src/engine-components/DragControls.ts +534 -0
- package/src/engine-components/DropListener.ts +101 -0
- package/src/engine-components/Duplicatable.ts +146 -0
- package/src/engine-components/EventList.ts +116 -0
- package/src/engine-components/EventTrigger.ts +28 -0
- package/src/engine-components/EventType.ts +88 -0
- package/src/engine-components/FlyControls.ts +27 -0
- package/src/engine-components/Gizmos.ts +53 -0
- package/src/engine-components/GltfExport.ts +232 -0
- package/src/engine-components/GridHelper.ts +32 -0
- package/src/engine-components/GroundProjection.ts +75 -0
- package/src/engine-components/Interactable.ts +28 -0
- package/src/engine-components/LODGroup.ts +173 -0
- package/src/engine-components/Light.ts +418 -0
- package/src/engine-components/LookAtConstraint.ts +12 -0
- package/src/engine-components/MeshCollider.ts +12 -0
- package/src/engine-components/NavMesh.ts +118 -0
- package/src/engine-components/NestedGltf.ts +56 -0
- package/src/engine-components/Networking.ts +58 -0
- package/src/engine-components/OffsetConstraint.ts +32 -0
- package/src/engine-components/OrbitControls.ts +270 -0
- package/src/engine-components/ParticleSystem.ts +249 -0
- package/src/engine-components/ParticleSystemModules.ts +173 -0
- package/src/engine-components/PlayerColor.ts +93 -0
- package/src/engine-components/Renderer.ts +732 -0
- package/src/engine-components/RendererLightmap.ts +152 -0
- package/src/engine-components/RigidBody.ts +177 -0
- package/src/engine-components/ScreenCapture.ts +47 -0
- package/src/engine-components/ShadowCatcher.ts +93 -0
- package/src/engine-components/Skybox.ts +116 -0
- package/src/engine-components/SmoothFollow.ts +55 -0
- package/src/engine-components/SpatialTrigger.ts +142 -0
- package/src/engine-components/SpectatorCamera.ts +350 -0
- package/src/engine-components/SphereCollider.ts +2 -0
- package/src/engine-components/SpringJoint.ts +45 -0
- package/src/engine-components/SpriteRenderer.ts +143 -0
- package/src/engine-components/SyncedCamera.ts +206 -0
- package/src/engine-components/SyncedRoom.ts +157 -0
- package/src/engine-components/SyncedTransform.ts +339 -0
- package/src/engine-components/TestRunner.ts +116 -0
- package/src/engine-components/TransformGizmo.ts +185 -0
- package/src/engine-components/VideoPlayer.ts +308 -0
- package/src/engine-components/Voip.ts +455 -0
- package/src/engine-components/Volume.ts +86 -0
- package/src/engine-components/WebARSessionRoot.ts +109 -0
- package/src/engine-components/WebXR.ts +586 -0
- package/src/engine-components/WebXRAvatar.ts +326 -0
- package/src/engine-components/WebXRController.ts +1049 -0
- package/src/engine-components/WebXRGrabRendering.ts +151 -0
- package/src/engine-components/WebXRRig.ts +9 -0
- package/src/engine-components/WebXRSync.ts +458 -0
- package/src/engine-components/XRFlag.ts +134 -0
- package/src/engine-components/avatar/AvatarBlink_Simple.ts +68 -0
- package/src/engine-components/avatar/AvatarEyeLook_Rotation.ts +69 -0
- package/src/engine-components/avatar/Avatar_Brain_LookAt.ts +137 -0
- package/src/engine-components/avatar/Avatar_MouthShapes.ts +81 -0
- package/src/engine-components/avatar/Avatar_MustacheShake.ts +29 -0
- package/src/engine-components/codegen/exports.ts +141 -0
- package/src/engine-components/debug/LogStats.ts +22 -0
- package/src/engine-components/js-extensions/RGBAColor.ts +36 -0
- package/src/engine-components/timeline/PlayableDirector.ts +485 -0
- package/src/engine-components/timeline/SignalAsset.ts +108 -0
- package/src/engine-components/timeline/TimelineModels.ts +91 -0
- package/src/engine-components/timeline/TimelineTracks.ts +627 -0
- package/src/engine-components/ui/BaseUIComponent.ts +153 -0
- package/src/engine-components/ui/Button.ts +251 -0
- package/src/engine-components/ui/Canvas.ts +166 -0
- package/src/engine-components/ui/CanvasGroup.ts +47 -0
- package/src/engine-components/ui/EventSystem.ts +523 -0
- package/src/engine-components/ui/Graphic.ts +157 -0
- package/src/engine-components/ui/Image.ts +57 -0
- package/src/engine-components/ui/InputField.ts +235 -0
- package/src/engine-components/ui/Interfaces.ts +8 -0
- package/src/engine-components/ui/Keyboard.ts +203 -0
- package/src/engine-components/ui/Layout.ts +17 -0
- package/src/engine-components/ui/PointerEvents.ts +54 -0
- package/src/engine-components/ui/Raycaster.ts +47 -0
- package/src/engine-components/ui/RectTransform.ts +180 -0
- package/src/engine-components/ui/SpatialHtml.ts +63 -0
- package/src/engine-components/ui/Text.ts +634 -0
- package/src/engine-components/ui/Utils.ts +105 -0
- package/src/engine-components-experimental/Presentation.ts +13 -0
- package/src/engine-components-experimental/annotation/LineDrawer.ts +191 -0
- package/src/engine-components-experimental/annotation/LinesManager.ts +218 -0
- package/src/engine-components-experimental/networking/PlayerSync.ts +131 -0
- package/src/engine-schemes/COMPILE_SCHEMES.bat +4 -0
- package/src/engine-schemes/COMPILE_TS.bat +12 -0
- package/src/engine-schemes/schemes.ts +29 -0
- package/src/engine-schemes/synced-camera-model.ts +92 -0
- package/src/engine-schemes/synced-transform-model.ts +90 -0
- package/src/engine-schemes/syncedCamera.fbs +11 -0
- package/src/engine-schemes/transform.ts +50 -0
- package/src/engine-schemes/transforms.fbs +26 -0
- package/src/engine-schemes/vec.fbs +19 -0
- package/src/engine-schemes/vec2.ts +33 -0
- package/src/engine-schemes/vec3.ts +38 -0
- package/src/engine-schemes/vec4.ts +43 -0
- package/src/engine-schemes/vr-user-state-buffer.ts +138 -0
- package/src/engine-schemes/vrUserStateBuffer.fbs +17 -0
- package/src/needle-engine.ts +39 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Object3D } from "three";
|
|
8
|
+
import { Behaviour, GameObject } from "../Component";
|
|
9
|
+
import { XRFlag } from "../XRFlag";
|
|
10
|
+
import { serializeable } from "../../engine/engine_serialization_decorator";
|
|
11
|
+
export class AvatarBlink_Simple extends Behaviour {
|
|
12
|
+
eyes = [];
|
|
13
|
+
lastBlinkTime = 0;
|
|
14
|
+
blinkLength = 0;
|
|
15
|
+
eyesOpen = true;
|
|
16
|
+
state = null;
|
|
17
|
+
awake() {
|
|
18
|
+
this.state = GameObject.getComponentInParent(this.gameObject, XRFlag);
|
|
19
|
+
// console.log(this.state, this.activeAndEnabled, this.gameObject);
|
|
20
|
+
}
|
|
21
|
+
update() {
|
|
22
|
+
if (!this.gameObject || !this.gameObject.visible)
|
|
23
|
+
return;
|
|
24
|
+
if (!this.eyes || !Array.isArray(this.eyes) || this.eyes.length === 0)
|
|
25
|
+
return;
|
|
26
|
+
const needsUpdate = this.context.time.time - this.lastBlinkTime > this.blinkLength;
|
|
27
|
+
if (needsUpdate) {
|
|
28
|
+
this.lastBlinkTime = this.context.time.time;
|
|
29
|
+
// workaround until we propagate active state to all child components
|
|
30
|
+
if (this.state && !this.state.isOn)
|
|
31
|
+
return;
|
|
32
|
+
if (!this.activeAndEnabled)
|
|
33
|
+
return;
|
|
34
|
+
// console.log(this.state?.isOn, this.activeAndEnabled);
|
|
35
|
+
this.eyesOpen = !this.eyesOpen;
|
|
36
|
+
this.blinkLength = Math.random();
|
|
37
|
+
if (!this.eyesOpen) {
|
|
38
|
+
this.blinkLength *= Math.random() * .2;
|
|
39
|
+
this.blinkLength += .1;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
// eyes are open
|
|
43
|
+
this.blinkLength *= 3;
|
|
44
|
+
this.blinkLength += .5;
|
|
45
|
+
if (Math.random() < .1)
|
|
46
|
+
this.blinkLength = .1 + Math.random() * .2;
|
|
47
|
+
}
|
|
48
|
+
if (Math.random() < .1)
|
|
49
|
+
this.blinkLength *= 3;
|
|
50
|
+
// if(time.time - this.lastMouthChangeTime < .5 && Math.random() > .5){
|
|
51
|
+
// this.blinkLength *= 1-(100/this.lastMouthChangeFrequency);
|
|
52
|
+
// }
|
|
53
|
+
this.blinkLength = Math.max(.2, this.blinkLength);
|
|
54
|
+
this.blinkLength = Math.min(3, this.blinkLength);
|
|
55
|
+
if (this.eyes) {
|
|
56
|
+
for (const eye of this.eyes) {
|
|
57
|
+
if (eye)
|
|
58
|
+
eye.visible = this.eyesOpen;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
__decorate([
|
|
65
|
+
serializeable(Object3D)
|
|
66
|
+
], AvatarBlink_Simple.prototype, "eyes", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
serializeable()
|
|
69
|
+
], AvatarBlink_Simple.prototype, "lastBlinkTime", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
serializeable()
|
|
72
|
+
], AvatarBlink_Simple.prototype, "blinkLength", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
serializeable()
|
|
75
|
+
], AvatarBlink_Simple.prototype, "eyesOpen", void 0);
|
|
76
|
+
//# sourceMappingURL=AvatarBlink_Simple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarBlink_Simple.js","sourceRoot":"","sources":["../../../../engine-components/avatar/AvatarBlink_Simple.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,MAAM,EAAW,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAG5E,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAGrC,IAAI,GAAqB,EAAE,CAAC;IAE5B,aAAa,GAAW,CAAC,CAAC;IAE1B,WAAW,GAAW,CAAC,CAAC;IAExB,QAAQ,GAAY,IAAI,CAAC;IAEzB,KAAK,GAAmB,IAAI,CAAC;IAErC,KAAK;QACD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QACtE,mEAAmE;IACvE,CAAC;IAEM,MAAM;QACT,IAAI,CAAC,IAAI,CAAC,U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AAC;YAE9C,uEAAuE;YACvE,iEAAiE;YACjE,IAAI;YAEJ,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;YAClD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;YACjD,IAAI,IAAI,CAAC,IAAI,EAAE;gBACX,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE;oBACzB,IAAI,GAAG;wBACH,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;iBACnC;aACJ;SACJ;IACL,CAAC;CACJ;AA1DG;IADC,aAAa,CAAC,QAAQ,CAAC;gDACY;AAEpC;IADC,aAAa,EAAE;yDACkB;AAElC;IADC,aAAa,EAAE;uDACgB;AAEhC;IADC,aAAa,EAAE;oDACiB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Behaviour, GameObject } from "../Component";
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
export declare class AvatarEyeLook_Rotation extends Behaviour {
|
|
4
|
+
head: GameObject | null;
|
|
5
|
+
eyes: GameObject[] | null;
|
|
6
|
+
target: THREE.Object3D | null;
|
|
7
|
+
private brain;
|
|
8
|
+
awake(): void;
|
|
9
|
+
private vec;
|
|
10
|
+
private static forward;
|
|
11
|
+
private currentTargetPoint;
|
|
12
|
+
update(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Behaviour, GameObject } from "../Component";
|
|
8
|
+
import * as utils from "../../engine/engine_three_utils";
|
|
9
|
+
import * as THREE from "three";
|
|
10
|
+
import { Avatar_Brain_LookAt } from "./Avatar_Brain_LookAt";
|
|
11
|
+
import { serializeable } from "../../engine/engine_serialization_decorator";
|
|
12
|
+
import { Object3D } from "three";
|
|
13
|
+
export class AvatarEyeLook_Rotation extends Behaviour {
|
|
14
|
+
head = null;
|
|
15
|
+
eyes = null;
|
|
16
|
+
target = null;
|
|
17
|
+
brain = null;
|
|
18
|
+
awake() {
|
|
19
|
+
// console.log(this);
|
|
20
|
+
if (!this.brain) {
|
|
21
|
+
this.brain = GameObject.getComponentInParent(this.gameObject, Avatar_Brain_LookAt);
|
|
22
|
+
}
|
|
23
|
+
if (!this.brain) {
|
|
24
|
+
console.log("No look at brain found, adding it now");
|
|
25
|
+
this.brain = GameObject.addNewComponent(this.gameObject, Avatar_Brain_LookAt);
|
|
26
|
+
}
|
|
27
|
+
if (this.brain && this.target) {
|
|
28
|
+
this.brain.controlledTarget = this.target;
|
|
29
|
+
}
|
|
30
|
+
// console.log(this);
|
|
31
|
+
// if(this.head){
|
|
32
|
+
// this.head.add(new THREE.AxesHelper(1));
|
|
33
|
+
// }
|
|
34
|
+
}
|
|
35
|
+
vec = new THREE.Vector3();
|
|
36
|
+
static forward = new THREE.Vector3(0, 0, 1);
|
|
37
|
+
currentTargetPoint = new THREE.Vector3();
|
|
38
|
+
update() {
|
|
39
|
+
// if(!this.activeAndEnabled) return;
|
|
40
|
+
const target = this.target;
|
|
41
|
+
// console.log(target);
|
|
42
|
+
if (target && this.head) {
|
|
43
|
+
const eyes = this.eyes;
|
|
44
|
+
if (eyes) {
|
|
45
|
+
const worldTarget = utils.getWorldPosition(target);
|
|
46
|
+
this.currentTargetPoint.lerp(worldTarget, this.context.time.deltaTime / .1);
|
|
47
|
+
const headPosition = utils.getWorldPosition(this.head);
|
|
48
|
+
const direction = this.vec.copy(this.currentTargetPoint).sub(headPosition).normalize();
|
|
49
|
+
if (direction.length() < .1)
|
|
50
|
+
return;
|
|
51
|
+
const forward = AvatarEyeLook_Rotation.forward;
|
|
52
|
+
forward.set(0, 0, 1);
|
|
53
|
+
forward.applyQuaternion(utils.getWorldQuaternion(this.head));
|
|
54
|
+
const dot = forward.dot(direction);
|
|
55
|
+
if (dot > .45) {
|
|
56
|
+
// console.log(dot);
|
|
57
|
+
for (let i = 0; i < eyes.length; i++) {
|
|
58
|
+
const eye = eyes[i];
|
|
59
|
+
eye.lookAt(this.currentTargetPoint);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
__decorate([
|
|
67
|
+
serializeable(Object3D)
|
|
68
|
+
], AvatarEyeLook_Rotation.prototype, "head", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
serializeable(Object3D)
|
|
71
|
+
], AvatarEyeLook_Rotation.prototype, "eyes", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
serializeable(Object3D)
|
|
74
|
+
], AvatarEyeLook_Rotation.prototype, "target", void 0);
|
|
75
|
+
//# sourceMappingURL=AvatarEyeLook_Rotation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarEyeLook_Rotation.js","sourceRoot":"","sources":["../../../../engine-components/avatar/AvatarEyeLook_Rotation.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,iCAAiC,CAAA;AACxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM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27 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { Behaviour } from "../Component";
|
|
3
|
+
import { AvatarMarker } from "../WebXRAvatar";
|
|
4
|
+
import { Context } from "../../engine/engine_setup";
|
|
5
|
+
export declare class Avatar_POI {
|
|
6
|
+
static Pois: {
|
|
7
|
+
obj: THREE.Object3D;
|
|
8
|
+
avatar: AvatarMarker | null;
|
|
9
|
+
}[];
|
|
10
|
+
static LastChangeTime: number;
|
|
11
|
+
static Add(context: Context, obj: THREE.Object3D, ignoredBy?: AvatarMarker | null): void;
|
|
12
|
+
static Remove(context: Context | null, obj: THREE.Object3D | null): void;
|
|
13
|
+
}
|
|
14
|
+
export declare class Avatar_Brain_LookAt extends Behaviour {
|
|
15
|
+
set controlledTarget(target: THREE.Object3D);
|
|
16
|
+
private target;
|
|
17
|
+
private avatar;
|
|
18
|
+
private _model;
|
|
19
|
+
private _targetModel;
|
|
20
|
+
private _currentTargetObject;
|
|
21
|
+
private _lastUpdateTime;
|
|
22
|
+
private _lookDuration;
|
|
23
|
+
private _lastPoiChangedTime;
|
|
24
|
+
awake(): void;
|
|
25
|
+
update(): void;
|
|
26
|
+
private selectTarget;
|
|
27
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { TypeStore } from "../../engine/engine_typestore";
|
|
3
|
+
import { Behaviour, GameObject } from "../Component";
|
|
4
|
+
import { AvatarMarker } from "../WebXRAvatar";
|
|
5
|
+
import * as utils from "../../engine/engine_three_utils";
|
|
6
|
+
import { OwnershipModel } from "../../engine/engine_networking";
|
|
7
|
+
import { Context } from "../../engine/engine_setup";
|
|
8
|
+
export class Avatar_POI {
|
|
9
|
+
static Pois = [];
|
|
10
|
+
static LastChangeTime = 0;
|
|
11
|
+
static Add(context, obj, ignoredBy = null) {
|
|
12
|
+
if (!obj)
|
|
13
|
+
return;
|
|
14
|
+
for (const e of this.Pois) {
|
|
15
|
+
if (e.obj === obj)
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.Pois.push({ obj: obj, avatar: ignoredBy });
|
|
19
|
+
this.LastChangeTime = context.time.time;
|
|
20
|
+
// console.log("Added", obj?.name);
|
|
21
|
+
}
|
|
22
|
+
static Remove(context, obj) {
|
|
23
|
+
if (!obj)
|
|
24
|
+
return;
|
|
25
|
+
for (const e of this.Pois) {
|
|
26
|
+
if (e.obj === obj) {
|
|
27
|
+
this.Pois.splice(this.Pois.indexOf(e), 1);
|
|
28
|
+
this.LastChangeTime = context?.time.time ?? Context.Current?.time.time;
|
|
29
|
+
// console.log("Removed", obj?.name);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
var NetworkEvents;
|
|
36
|
+
(function (NetworkEvents) {
|
|
37
|
+
NetworkEvents["TargetChanged"] = "avatar-look-target-changed";
|
|
38
|
+
})(NetworkEvents || (NetworkEvents = {}));
|
|
39
|
+
class TargetModel {
|
|
40
|
+
guid;
|
|
41
|
+
position = new THREE.Vector3();
|
|
42
|
+
}
|
|
43
|
+
export class Avatar_Brain_LookAt extends Behaviour {
|
|
44
|
+
set controlledTarget(target) {
|
|
45
|
+
this.target = target;
|
|
46
|
+
// HACK
|
|
47
|
+
const r = TypeStore.get("MoveRandom");
|
|
48
|
+
if (r && this.target) {
|
|
49
|
+
const rm = GameObject.getComponent(this.target, r);
|
|
50
|
+
if (rm) {
|
|
51
|
+
rm.destroy();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// this.target.add(new THREE.AxesHelper(.1));
|
|
55
|
+
}
|
|
56
|
+
// that target to copy positions into
|
|
57
|
+
target = null;
|
|
58
|
+
avatar = null;
|
|
59
|
+
_model = null;
|
|
60
|
+
_targetModel = new TargetModel();
|
|
61
|
+
_currentTargetObject = null;
|
|
62
|
+
_lastUpdateTime = 0;
|
|
63
|
+
_lookDuration = 0;
|
|
64
|
+
_lastPoiChangedTime = 0;
|
|
65
|
+
awake() {
|
|
66
|
+
this.avatar = GameObject.getComponentInParent(this.gameObject, AvatarMarker);
|
|
67
|
+
if (this.avatar) {
|
|
68
|
+
const marker = GameObject.getComponentInParent(this.gameObject, AvatarMarker);
|
|
69
|
+
this._model = new OwnershipModel(this.context.connection, this.guid);
|
|
70
|
+
if (marker?.isLocalAvatar) {
|
|
71
|
+
this._model.requestOwnership();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
this.context.connection.beginListen(NetworkEvents.TargetChanged, (cb) => {
|
|
75
|
+
if (this.target && cb && cb.guid === this.avatar?.guid) {
|
|
76
|
+
utils.setWorldPosition(this.target, cb.position);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
// console.log(this);
|
|
80
|
+
}
|
|
81
|
+
update() {
|
|
82
|
+
const connected = this.context.connection.isConnected;
|
|
83
|
+
if (!connected || this._model?.hasOwnership) {
|
|
84
|
+
if (Avatar_POI.LastChangeTime !== this._lastPoiChangedTime) {
|
|
85
|
+
this._lastPoiChangedTime = Avatar_POI.LastChangeTime;
|
|
86
|
+
this._lookDuration = 0;
|
|
87
|
+
}
|
|
88
|
+
this.selectTarget();
|
|
89
|
+
// send target info
|
|
90
|
+
if (this._currentTargetObject && this.context.time.frameCount % 10 === 0 && this.target) {
|
|
91
|
+
const wp = utils.getWorldPosition(this._currentTargetObject);
|
|
92
|
+
utils.setWorldPosition(this.target, wp);
|
|
93
|
+
if (this.context.connection.isConnected && this.avatar) {
|
|
94
|
+
this.context.connection.send(NetworkEvents.TargetChanged, this._targetModel);
|
|
95
|
+
this._targetModel.guid = this.avatar.guid;
|
|
96
|
+
this._targetModel.position.copy(wp);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
selectTarget() {
|
|
102
|
+
// select random target
|
|
103
|
+
const td = this.context.time.time - this._lastUpdateTime;
|
|
104
|
+
if (td > this._lookDuration) {
|
|
105
|
+
this._lastUpdateTime = this.context.time.time;
|
|
106
|
+
this._lookDuration = Math.random() * .5 + .2;
|
|
107
|
+
const pois = Avatar_POI.Pois;
|
|
108
|
+
if (pois.length > 0) {
|
|
109
|
+
const poi = pois[Math.floor(Math.random() * pois.length)];
|
|
110
|
+
if (poi && poi.obj) {
|
|
111
|
+
if (poi.avatar && poi.avatar === this.avatar)
|
|
112
|
+
return;
|
|
113
|
+
this._currentTargetObject = poi.obj;
|
|
114
|
+
// console.log(this._currentTargetObject);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=Avatar_Brain_LookAt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar_Brain_LookAt.js","sourceRoot":"","sources":["../../../../engine-components/avatar/Avatar_Brain_LookAt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAU,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,MAAM,OAAO,UAAU;IAEZ,MAAM,CAAC,IAAI,GAA2D,EAAE,CAAC;IACzE,MAAM,CAAC,cAAc,GAAW,CAAC,CAAC;IAElC,MAAM,CAAC,GAAG,CAAC,OAAgB,EAAE,GAAmB,EAAE,YAAiC,IAAI;QAC1F,IAAI,CAAC,GAAG;YAAE,OAAO;QACjB,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE;YACvB,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG;gBAAE,OAAO;SAC7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AI,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;YAC7C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;YAC7B,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;gBACjB,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC1D,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE;oBAChB,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM;wBAAE,OAAO;oBACrD,IAAI,CAAC,oBAAoB,GAAG,GAAG,CAAC,GAAG,CAAC;oBACpC,0CAA0C;iBAC7C;aACJ;SACJ;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Behaviour } from "../Component";
|
|
2
|
+
export declare class Avatar_MouthShapes extends Behaviour {
|
|
3
|
+
idle: THREE.Object3D[];
|
|
4
|
+
talking: THREE.Object3D[];
|
|
5
|
+
private marker;
|
|
6
|
+
private voip;
|
|
7
|
+
private lastMouthChangeTime;
|
|
8
|
+
private mouthChangeLength;
|
|
9
|
+
awake(): void;
|
|
10
|
+
update(): void;
|
|
11
|
+
private updateLips;
|
|
12
|
+
private setMouthShapeActive;
|
|
13
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Behaviour, GameObject } from "../Component";
|
|
8
|
+
import { Voip } from "../Voip";
|
|
9
|
+
import * as utils from "../../engine/engine_utils";
|
|
10
|
+
import { Object3D } from "three";
|
|
11
|
+
import { serializeable } from "../../engine/engine_serialization_decorator";
|
|
12
|
+
const debug = utils.getParam("debugmouth");
|
|
13
|
+
export class Avatar_MouthShapes extends Behaviour {
|
|
14
|
+
idle = [];
|
|
15
|
+
talking = [];
|
|
16
|
+
marker = null;
|
|
17
|
+
voip = null;
|
|
18
|
+
lastMouthChangeTime = 0;
|
|
19
|
+
mouthChangeLength = 0;
|
|
20
|
+
awake() {
|
|
21
|
+
this.voip = GameObject.findObjectOfType(Voip, this.context);
|
|
22
|
+
console.log(this);
|
|
23
|
+
}
|
|
24
|
+
update() {
|
|
25
|
+
if (!this.voip)
|
|
26
|
+
return;
|
|
27
|
+
if (this.context.time.frameCount % 10 !== 0)
|
|
28
|
+
return;
|
|
29
|
+
let id = this.marker?.connectionId ?? null;
|
|
30
|
+
if (!id) {
|
|
31
|
+
if (debug)
|
|
32
|
+
id = null;
|
|
33
|
+
}
|
|
34
|
+
const freq = this.voip.getFrequency(id);
|
|
35
|
+
if (freq == null)
|
|
36
|
+
return;
|
|
37
|
+
this.updateLips(freq);
|
|
38
|
+
}
|
|
39
|
+
updateLips(frequency) {
|
|
40
|
+
if (this.context.time.time - this.lastMouthChangeTime > this.mouthChangeLength) {
|
|
41
|
+
this.mouthChangeLength = .05 + Math.random() * .1;
|
|
42
|
+
if (this.talking && this.talking.length > 0 && frequency > 50) {
|
|
43
|
+
this.lastMouthChangeTime = this.context.time.time;
|
|
44
|
+
const index = Math.floor(Math.random() * this.talking.length);
|
|
45
|
+
this.setMouthShapeActive(this.talking, index);
|
|
46
|
+
}
|
|
47
|
+
else if (this.idle.length > 0 && this.context.time.time - this.lastMouthChangeTime > .5) {
|
|
48
|
+
this.lastMouthChangeTime = this.context.time.time;
|
|
49
|
+
const index = Math.floor(Math.random() * this.idle.length);
|
|
50
|
+
this.setMouthShapeActive(this.idle, index);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
setMouthShapeActive(arr, index) {
|
|
55
|
+
if (!arr)
|
|
56
|
+
return;
|
|
57
|
+
// hide other
|
|
58
|
+
if (arr != this.idle)
|
|
59
|
+
this.idle.map(i => i.visible = false);
|
|
60
|
+
else
|
|
61
|
+
this.talking.map(i => i.visible = false);
|
|
62
|
+
for (let i = 0; i < arr.length; i++) {
|
|
63
|
+
const shape = arr[i];
|
|
64
|
+
if (shape) {
|
|
65
|
+
shape.visible = i === index;
|
|
66
|
+
shape.scale.set(1, 1, 1);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
__decorate([
|
|
72
|
+
serializeable(Object3D)
|
|
73
|
+
], Avatar_MouthShapes.prototype, "idle", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
serializeable(Object3D)
|
|
76
|
+
], Avatar_MouthShapes.prototype, "talking", void 0);
|
|
77
|
+
//# sourceMappingURL=Avatar_MouthShapes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar_MouthShapes.js","sourceRoot":"","sources":["../../../../engine-components/avatar/Avatar_MouthShapes.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAE5E,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;AAE3C,MAAM,OAA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AK,EAAE;gBACP,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,KAAK,CAAC;gBAC5B,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAC,CAAC,EAAC,CAAC,CAAC,CAAC;aAC1B;SACJ;IACL,CAAC;CAaJ;AArEG;IADC,aAAa,CAAC,QAAQ,CAAC;gDACW;AAEnC;IADC,aAAa,CAAC,QAAQ,CAAC;mDACc"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Behaviour, GameObject } from "../Component";
|
|
2
|
+
import { Voip } from "../Voip";
|
|
3
|
+
import { AvatarMarker } from "../WebXRAvatar";
|
|
4
|
+
export class Avatar_MustacheShake extends Behaviour {
|
|
5
|
+
voip = null;
|
|
6
|
+
marker = null;
|
|
7
|
+
_startPosition = null;
|
|
8
|
+
awake() {
|
|
9
|
+
this.voip = GameObject.findObjectOfType(Voip, this.context);
|
|
10
|
+
this.marker = GameObject.getComponentInParent(this.gameObject, AvatarMarker);
|
|
11
|
+
// console.log(this);
|
|
12
|
+
}
|
|
13
|
+
update() {
|
|
14
|
+
if (!this.voip || !this.marker)
|
|
15
|
+
return;
|
|
16
|
+
if (this.context.time.frameCount % 10 !== 0)
|
|
17
|
+
return;
|
|
18
|
+
const id = this.marker.connectionId;
|
|
19
|
+
const freq = this.voip.getFrequency(id);
|
|
20
|
+
if (freq == null)
|
|
21
|
+
return;
|
|
22
|
+
if (!this._startPosition) {
|
|
23
|
+
this._startPosition = this.gameObject.position.clone();
|
|
24
|
+
}
|
|
25
|
+
let t = freq / 100;
|
|
26
|
+
this.gameObject.position.y = this._startPosition.y + t * 0.07;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=Avatar_MustacheShake.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar_MustacheShake.js","sourceRoot":"","sources":["../../../../engine-components/avatar/Avatar_MustacheShake.ts"],"names":[],"mappings":"AAAA,OAAO,EA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
export { AlignmentConstraint } from "../AlignmentConstraint";
|
|
2
|
+
export { Animation } from "../Animation";
|
|
3
|
+
export { AnimationCurve } from "../AnimationCurve";
|
|
4
|
+
export { Animator } from "../Animator";
|
|
5
|
+
export { AnimatorController } from "../AnimatorController";
|
|
6
|
+
export { AudioListener } from "../AudioListener";
|
|
7
|
+
export { AudioSource } from "../AudioSource";
|
|
8
|
+
export { AvatarModel } from "../AvatarLoader";
|
|
9
|
+
export { AvatarLoader } from "../AvatarLoader";
|
|
10
|
+
export { AxesHelper } from "../AxesHelper";
|
|
11
|
+
export { BasicIKConstraint } from "../BasicIKConstraint";
|
|
12
|
+
export { BoxHelperComponent } from "../BoxHelperComponent";
|
|
13
|
+
export { Camera } from "../Camera";
|
|
14
|
+
export { Collider } from "../Collider";
|
|
15
|
+
export { SphereCollider } from "../Collider";
|
|
16
|
+
export { BoxCollider } from "../Collider";
|
|
17
|
+
export { InstantiateOptions } from "../Component";
|
|
18
|
+
export { UnityObject } from "../ComponentExtensions";
|
|
19
|
+
export { DeleteBox } from "../DeleteBox";
|
|
20
|
+
export { Deletable } from "../DeleteBox";
|
|
21
|
+
export { DeviceFlag } from "../DeviceFlag";
|
|
22
|
+
export { DragControls } from "../DragControls";
|
|
23
|
+
export { DropListener } from "../DropListener";
|
|
24
|
+
export { Duplicatable } from "../Duplicatable";
|
|
25
|
+
export { CallInfo } from "../EventList";
|
|
26
|
+
export { EventListEvent } from "../EventList";
|
|
27
|
+
export { EventList } from "../EventList";
|
|
28
|
+
export { EventTrigger } from "../EventTrigger";
|
|
29
|
+
export { FlyControls } from "../FlyControls";
|
|
30
|
+
export { BoxGizmo } from "../Gizmos";
|
|
31
|
+
export { GltfExportBox } from "../GltfExport";
|
|
32
|
+
export { GltfExport } from "../GltfExport";
|
|
33
|
+
export { GridHelper } from "../GridHelper";
|
|
34
|
+
export { GroundProjectedEnv } from "../GroundProjection";
|
|
35
|
+
export { Interactable } from "../Interactable";
|
|
36
|
+
export { UsageMarker } from "../Interactable";
|
|
37
|
+
export { Light } from "../Light";
|
|
38
|
+
export { LODModel } from "../LODGroup";
|
|
39
|
+
export { LODGroup } from "../LODGroup";
|
|
40
|
+
export { LookAtConstraint } from "../LookAtConstraint";
|
|
41
|
+
export { MeshCollider } from "../MeshCollider";
|
|
42
|
+
export { NavMesh } from "../NavMesh";
|
|
43
|
+
export { NavMeshAgent } from "../NavMesh";
|
|
44
|
+
export { NestedGltf } from "../NestedGltf";
|
|
45
|
+
export { Networking } from "../Networking";
|
|
46
|
+
export { OffsetConstraint } from "../OffsetConstraint";
|
|
47
|
+
export { OrbitControls } from "../OrbitControls";
|
|
48
|
+
export { ParticleSystemRenderer } from "../ParticleSystem";
|
|
49
|
+
export { ParticleSystem } from "../ParticleSystem";
|
|
50
|
+
export { MainModule } from "../ParticleSystemModules";
|
|
51
|
+
export { EmissionModule } from "../ParticleSystemModules";
|
|
52
|
+
export { ShapeModule } from "../ParticleSystemModules";
|
|
53
|
+
export { PlayerColor } from "../PlayerColor";
|
|
54
|
+
export { FieldWithDefault } from "../Renderer";
|
|
55
|
+
export { Renderer } from "../Renderer";
|
|
56
|
+
export { MeshRenderer } from "../Renderer";
|
|
57
|
+
export { SkinnedMeshRenderer } from "../Renderer";
|
|
58
|
+
export { InstancingUtil } from "../Renderer";
|
|
59
|
+
export { RendererLightmap } from "../RendererLightmap";
|
|
60
|
+
export { Rigidbody } from "../RigidBody";
|
|
61
|
+
export { ScreenCapture } from "../ScreenCapture";
|
|
62
|
+
export { ShadowCatcher } from "../ShadowCatcher";
|
|
63
|
+
export { RemoteSkybox } from "../Skybox";
|
|
64
|
+
export { SmoothFollow } from "../SmoothFollow";
|
|
65
|
+
export { SpatialTriggerReceiver } from "../SpatialTrigger";
|
|
66
|
+
export { SpatialTrigger } from "../SpatialTrigger";
|
|
67
|
+
export { SpectatorCamera } from "../SpectatorCamera";
|
|
68
|
+
export { SpringJoint } from "../SpringJoint";
|
|
69
|
+
export { Sprite } from "../SpriteRenderer";
|
|
70
|
+
export { SpriteRenderer } from "../SpriteRenderer";
|
|
71
|
+
export { SyncedCamera } from "../SyncedCamera";
|
|
72
|
+
export { SyncedRoom } from "../SyncedRoom";
|
|
73
|
+
export { SyncedTransform } from "../SyncedTransform";
|
|
74
|
+
export { TestRunner } from "../TestRunner";
|
|
75
|
+
export { TestSimulateUserData } from "../TestRunner";
|
|
76
|
+
export { TransformGizmo } from "../TransformGizmo";
|
|
77
|
+
export { VideoPlayer } from "../VideoPlayer";
|
|
78
|
+
export { Voip } from "../Voip";
|
|
79
|
+
export { VolumeParameter } from "../Volume";
|
|
80
|
+
export { VolumeComponent } from "../Volume";
|
|
81
|
+
export { ToneMapping } from "../Volume";
|
|
82
|
+
export { ColorAdjustments } from "../Volume";
|
|
83
|
+
export { VolumeProfile } from "../Volume";
|
|
84
|
+
export { Volume } from "../Volume";
|
|
85
|
+
export { WebARSessionRoot } from "../WebARSessionRoot";
|
|
86
|
+
export { WebXR } from "../WebXR";
|
|
87
|
+
export { WebAR } from "../WebXR";
|
|
88
|
+
export { AvatarMarker } from "../WebXRAvatar";
|
|
89
|
+
export { WebXRAvatar } from "../WebXRAvatar";
|
|
90
|
+
export { TeleportTarget } from "../WebXRController";
|
|
91
|
+
export { WebXRController } from "../WebXRController";
|
|
92
|
+
export { AttachedObject } from "../WebXRController";
|
|
93
|
+
export { XRGrabModel } from "../WebXRGrabRendering";
|
|
94
|
+
export { XRGrabRendering } from "../WebXRGrabRendering";
|
|
95
|
+
export { XRRig } from "../WebXRRig";
|
|
96
|
+
export { VRUserState } from "../WebXRSync";
|
|
97
|
+
export { WebXRSync } from "../WebXRSync";
|
|
98
|
+
export { XRState } from "../XRFlag";
|
|
99
|
+
export { XRFlag } from "../XRFlag";
|
|
100
|
+
export { AvatarBlink_Simple } from "../avatar/AvatarBlink_Simple";
|
|
101
|
+
export { AvatarEyeLook_Rotation } from "../avatar/AvatarEyeLook_Rotation";
|
|
102
|
+
export { Avatar_POI } from "../avatar/Avatar_Brain_LookAt";
|
|
103
|
+
export { Avatar_Brain_LookAt } from "../avatar/Avatar_Brain_LookAt";
|
|
104
|
+
export { Avatar_MouthShapes } from "../avatar/Avatar_MouthShapes";
|
|
105
|
+
export { Avatar_MustacheShake } from "../avatar/Avatar_MustacheShake";
|
|
106
|
+
export { LogStats } from "../debug/LogStats";
|
|
107
|
+
export { RGBAColor } from "../js-extensions/RGBAColor";
|
|
108
|
+
export { PlayableDirector } from "../timeline/PlayableDirector";
|
|
109
|
+
export { SignalAsset } from "../timeline/SignalAsset";
|
|
110
|
+
export { SignalReceiverEvent } from "../timeline/SignalAsset";
|
|
111
|
+
export { SignalReceiver } from "../timeline/SignalAsset";
|
|
112
|
+
export { AnimationTrackHandler } from "../timeline/TimelineTracks";
|
|
113
|
+
export { AudioTrackHandler } from "../timeline/TimelineTracks";
|
|
114
|
+
export { SignalTrackHandler } from "../timeline/TimelineTracks";
|
|
115
|
+
export { ControlTrackHandler } from "../timeline/TimelineTracks";
|
|
116
|
+
export { BaseUIComponent } from "../ui/BaseUIComponent";
|
|
117
|
+
export { UIRootComponent } from "../ui/BaseUIComponent";
|
|
118
|
+
export { Button } from "../ui/Button";
|
|
119
|
+
export { Canvas } from "../ui/Canvas";
|
|
120
|
+
export { CanvasGroup } from "../ui/CanvasGroup";
|
|
121
|
+
export { EventSystem } from "../ui/EventSystem";
|
|
122
|
+
export { Graphic } from "../ui/Graphic";
|
|
123
|
+
export { MaskableGraphic } from "../ui/Graphic";
|
|
124
|
+
export { Image } from "../ui/Image";
|
|
125
|
+
export { RawImage } from "../ui/Image";
|
|
126
|
+
export { InputField } from "../ui/InputField";
|
|
127
|
+
export { Keyboard } from "../ui/Keyboard";
|
|
128
|
+
export { LayoutGroup } from "../ui/Layout";
|
|
129
|
+
export { VerticalLayoutGroup } from "../ui/Layout";
|
|
130
|
+
export { HorizontalLayoutGroup } from "../ui/Layout";
|
|
131
|
+
export { GridLayoutGroup } from "../ui/Layout";
|
|
132
|
+
export { PointerEventData } from "../ui/PointerEvents";
|
|
133
|
+
export { Raycaster } from "../ui/Raycaster";
|
|
134
|
+
export { ObjectRaycaster } from "../ui/Raycaster";
|
|
135
|
+
export { GraphicRaycaster } from "../ui/Raycaster";
|
|
136
|
+
export { Size } from "../ui/RectTransform";
|
|
137
|
+
export { Rect } from "../ui/RectTransform";
|
|
138
|
+
export { RectTransform } from "../ui/RectTransform";
|
|
139
|
+
export { SpatialHtml } from "../ui/SpatialHtml";
|
|
140
|
+
export { Text } from "../ui/Text";
|