@babylonjs/core 6.39.0 → 6.41.0

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.
Files changed (692) hide show
  1. package/Actions/action.js +3 -1
  2. package/Actions/action.js.map +1 -1
  3. package/Actions/condition.js +1 -0
  4. package/Actions/condition.js.map +1 -1
  5. package/Actions/directActions.d.ts +2 -2
  6. package/Actions/directActions.js +2 -2
  7. package/Actions/directActions.js.map +1 -1
  8. package/Animations/pathCursor.js +1 -0
  9. package/Animations/pathCursor.js.map +1 -1
  10. package/Animations/runtimeAnimation.js +3 -3
  11. package/Animations/runtimeAnimation.js.map +1 -1
  12. package/Audio/audioEngine.js +5 -0
  13. package/Audio/audioEngine.js.map +1 -1
  14. package/Behaviors/Cameras/autoRotationBehavior.d.ts +3 -0
  15. package/Behaviors/Cameras/autoRotationBehavior.js +3 -0
  16. package/Behaviors/Cameras/autoRotationBehavior.js.map +1 -1
  17. package/Behaviors/Meshes/pointerDragBehavior.d.ts +1 -0
  18. package/Behaviors/Meshes/pointerDragBehavior.js +2 -0
  19. package/Behaviors/Meshes/pointerDragBehavior.js.map +1 -1
  20. package/Bones/bone.d.ts +2 -0
  21. package/Bones/bone.js +2 -0
  22. package/Bones/bone.js.map +1 -1
  23. package/Cameras/Inputs/BaseCameraPointersInput.d.ts +2 -2
  24. package/Cameras/Inputs/BaseCameraPointersInput.js +2 -2
  25. package/Cameras/Inputs/BaseCameraPointersInput.js.map +1 -1
  26. package/Cameras/Inputs/arcRotateCameraPointersInput.d.ts +9 -9
  27. package/Cameras/Inputs/arcRotateCameraPointersInput.js +9 -9
  28. package/Cameras/Inputs/arcRotateCameraPointersInput.js.map +1 -1
  29. package/Cameras/Inputs/followCameraKeyboardMoveInput.d.ts +3 -0
  30. package/Cameras/Inputs/followCameraKeyboardMoveInput.js +3 -0
  31. package/Cameras/Inputs/followCameraKeyboardMoveInput.js.map +1 -1
  32. package/Cameras/arcRotateCamera.d.ts +2 -0
  33. package/Cameras/arcRotateCamera.js +2 -0
  34. package/Cameras/arcRotateCamera.js.map +1 -1
  35. package/Cameras/camera.d.ts +2 -0
  36. package/Cameras/camera.js +4 -0
  37. package/Cameras/camera.js.map +1 -1
  38. package/Cameras/followCamera.d.ts +1 -0
  39. package/Cameras/followCamera.js +1 -0
  40. package/Cameras/followCamera.js.map +1 -1
  41. package/Debug/debugLayer.d.ts +4 -1
  42. package/Debug/debugLayer.js +4 -1
  43. package/Debug/debugLayer.js.map +1 -1
  44. package/Debug/physicsViewer.d.ts +1 -0
  45. package/Debug/physicsViewer.js +3 -2
  46. package/Debug/physicsViewer.js.map +1 -1
  47. package/Decorators/nodeDecorator.d.ts +5 -4
  48. package/Decorators/nodeDecorator.js +5 -4
  49. package/Decorators/nodeDecorator.js.map +1 -1
  50. package/DeviceInput/eventFactory.d.ts +2 -0
  51. package/DeviceInput/eventFactory.js +3 -0
  52. package/DeviceInput/eventFactory.js.map +1 -1
  53. package/DeviceInput/webDeviceInputSystem.js +3 -0
  54. package/DeviceInput/webDeviceInputSystem.js.map +1 -1
  55. package/Engines/Extensions/engine.multiview.js +2 -0
  56. package/Engines/Extensions/engine.multiview.js.map +1 -1
  57. package/Engines/Native/nativeDataStream.d.ts +32 -0
  58. package/Engines/Native/nativeDataStream.js +32 -0
  59. package/Engines/Native/nativeDataStream.js.map +1 -1
  60. package/Engines/Native/nativePipelineContext.d.ts +0 -3
  61. package/Engines/Native/nativePipelineContext.js +0 -3
  62. package/Engines/Native/nativePipelineContext.js.map +1 -1
  63. package/Engines/WebGL/webGLPipelineContext.d.ts +0 -3
  64. package/Engines/WebGL/webGLPipelineContext.js +0 -3
  65. package/Engines/WebGL/webGLPipelineContext.js.map +1 -1
  66. package/Engines/WebGPU/Extensions/engine.readTexture.js +1 -0
  67. package/Engines/WebGPU/Extensions/engine.readTexture.js.map +1 -1
  68. package/Engines/WebGPU/webgpuCacheBindGroups.d.ts +1 -0
  69. package/Engines/WebGPU/webgpuCacheBindGroups.js +1 -0
  70. package/Engines/WebGPU/webgpuCacheBindGroups.js.map +1 -1
  71. package/Engines/WebGPU/webgpuCacheRenderPipeline.js +3 -0
  72. package/Engines/WebGPU/webgpuCacheRenderPipeline.js.map +1 -1
  73. package/Engines/WebGPU/webgpuPipelineContext.d.ts +0 -3
  74. package/Engines/WebGPU/webgpuPipelineContext.js +0 -3
  75. package/Engines/WebGPU/webgpuPipelineContext.js.map +1 -1
  76. package/Engines/WebGPU/webgpuShaderProcessingContext.js +1 -0
  77. package/Engines/WebGPU/webgpuShaderProcessingContext.js.map +1 -1
  78. package/Engines/WebGPU/webgpuShaderProcessorsWGSL.d.ts +1 -1
  79. package/Engines/WebGPU/webgpuShaderProcessorsWGSL.js +11 -2
  80. package/Engines/WebGPU/webgpuShaderProcessorsWGSL.js.map +1 -1
  81. package/Engines/WebGPU/webgpuTextureHelper.js +22 -0
  82. package/Engines/WebGPU/webgpuTextureHelper.js.map +1 -1
  83. package/Engines/WebGPU/webgpuTextureManager.js +2 -1
  84. package/Engines/WebGPU/webgpuTextureManager.js.map +1 -1
  85. package/Engines/engine.js +1 -0
  86. package/Engines/engine.js.map +1 -1
  87. package/Engines/nativeEngine.d.ts +4 -0
  88. package/Engines/nativeEngine.js +5 -0
  89. package/Engines/nativeEngine.js.map +1 -1
  90. package/Engines/thinEngine.js +7 -3
  91. package/Engines/thinEngine.js.map +1 -1
  92. package/Engines/webgpuEngine.d.ts +1 -1
  93. package/Engines/webgpuEngine.js +17 -1
  94. package/Engines/webgpuEngine.js.map +1 -1
  95. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.d.ts +207 -2
  96. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js +207 -6
  97. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js.map +1 -1
  98. package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.d.ts +15 -0
  99. package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js +9 -0
  100. package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js.map +1 -1
  101. package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.d.ts +4 -0
  102. package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.js +4 -0
  103. package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.js.map +1 -1
  104. package/FlowGraph/Blocks/Data/flowGraphConstantBlock.d.ts +17 -1
  105. package/FlowGraph/Blocks/Data/flowGraphConstantBlock.js +14 -1
  106. package/FlowGraph/Blocks/Data/flowGraphConstantBlock.js.map +1 -1
  107. package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.d.ts +9 -0
  108. package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js +9 -0
  109. package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js.map +1 -1
  110. package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.d.ts +5 -0
  111. package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.js +5 -0
  112. package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.js.map +1 -1
  113. package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.d.ts +16 -1
  114. package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.js +13 -1
  115. package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.js.map +1 -1
  116. package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.d.ts +12 -1
  117. package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.js +12 -1
  118. package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.js.map +1 -1
  119. package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.d.ts +18 -0
  120. package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.js +9 -0
  121. package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.js.map +1 -1
  122. package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.d.ts +12 -0
  123. package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js +9 -0
  124. package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js.map +1 -1
  125. package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.d.ts +15 -1
  126. package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.js +12 -1
  127. package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.js.map +1 -1
  128. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.d.ts +18 -2
  129. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js +15 -4
  130. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js.map +1 -1
  131. package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.d.ts +6 -0
  132. package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.js +6 -0
  133. package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.js.map +1 -1
  134. package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.d.ts +6 -0
  135. package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.js +6 -0
  136. package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.js.map +1 -1
  137. package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.d.ts +5 -2
  138. package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.js +4 -1
  139. package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.js.map +1 -1
  140. package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.d.ts +15 -1
  141. package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.js +12 -1
  142. package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.js.map +1 -1
  143. package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.d.ts +4 -1
  144. package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js +3 -0
  145. package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js.map +1 -1
  146. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.d.ts +3 -0
  147. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.js +3 -0
  148. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.js.map +1 -1
  149. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.d.ts +3 -0
  150. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.js +3 -0
  151. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.js.map +1 -1
  152. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.d.ts +3 -0
  153. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.js +3 -0
  154. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.js.map +1 -1
  155. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.d.ts +14 -1
  156. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.js +11 -1
  157. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.js.map +1 -1
  158. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.d.ts +3 -0
  159. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.js +3 -0
  160. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.js.map +1 -1
  161. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.d.ts +3 -0
  162. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.js +3 -0
  163. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.js.map +1 -1
  164. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.d.ts +15 -2
  165. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.js +12 -4
  166. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.js.map +1 -1
  167. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.d.ts +14 -2
  168. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.js +11 -4
  169. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.js.map +1 -1
  170. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.d.ts +15 -2
  171. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.js +12 -4
  172. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.js.map +1 -1
  173. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.d.ts +3 -0
  174. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.js +3 -0
  175. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.js.map +1 -1
  176. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.d.ts +6 -0
  177. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js +6 -0
  178. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js.map +1 -1
  179. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.d.ts +15 -2
  180. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.js +12 -3
  181. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.js.map +1 -1
  182. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.d.ts +18 -1
  183. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.js +15 -1
  184. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.js.map +1 -1
  185. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.d.ts +6 -0
  186. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js +6 -0
  187. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js.map +1 -1
  188. package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.d.ts +14 -2
  189. package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js +11 -4
  190. package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js.map +1 -1
  191. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.d.ts +15 -1
  192. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js +12 -1
  193. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js.map +1 -1
  194. package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.d.ts +14 -1
  195. package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.js +11 -1
  196. package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.js.map +1 -1
  197. package/FlowGraph/flowGraph.d.ts +16 -8
  198. package/FlowGraph/flowGraph.js +13 -8
  199. package/FlowGraph/flowGraph.js.map +1 -1
  200. package/FlowGraph/flowGraphBlock.d.ts +54 -5
  201. package/FlowGraph/flowGraphBlock.js +50 -11
  202. package/FlowGraph/flowGraphBlock.js.map +1 -1
  203. package/FlowGraph/flowGraphConnection.d.ts +10 -6
  204. package/FlowGraph/flowGraphConnection.js +10 -6
  205. package/FlowGraph/flowGraphConnection.js.map +1 -1
  206. package/FlowGraph/flowGraphContext.d.ts +10 -8
  207. package/FlowGraph/flowGraphContext.js +10 -8
  208. package/FlowGraph/flowGraphContext.js.map +1 -1
  209. package/FlowGraph/flowGraphCoordinator.d.ts +27 -1
  210. package/FlowGraph/flowGraphCoordinator.js +18 -2
  211. package/FlowGraph/flowGraphCoordinator.js.map +1 -1
  212. package/FlowGraph/flowGraphDataConnection.d.ts +26 -1
  213. package/FlowGraph/flowGraphDataConnection.js +23 -1
  214. package/FlowGraph/flowGraphDataConnection.js.map +1 -1
  215. package/FlowGraph/flowGraphExecutionBlock.d.ts +27 -1
  216. package/FlowGraph/flowGraphExecutionBlock.js +22 -4
  217. package/FlowGraph/flowGraphExecutionBlock.js.map +1 -1
  218. package/FlowGraph/flowGraphRichTypes.d.ts +24 -1
  219. package/FlowGraph/flowGraphRichTypes.js +18 -1
  220. package/FlowGraph/flowGraphRichTypes.js.map +1 -1
  221. package/FlowGraph/flowGraphSignalConnection.d.ts +2 -0
  222. package/FlowGraph/flowGraphSignalConnection.js +2 -0
  223. package/FlowGraph/flowGraphSignalConnection.js.map +1 -1
  224. package/Gamepads/gamepad.d.ts +2 -2
  225. package/Gamepads/gamepad.js +2 -2
  226. package/Gamepads/gamepad.js.map +1 -1
  227. package/Gamepads/gamepadSceneComponent.js +2 -0
  228. package/Gamepads/gamepadSceneComponent.js.map +1 -1
  229. package/Gizmos/axisScaleGizmo.d.ts +2 -0
  230. package/Gizmos/axisScaleGizmo.js +2 -0
  231. package/Gizmos/axisScaleGizmo.js.map +1 -1
  232. package/Gizmos/boundingBoxGizmo.d.ts +19 -0
  233. package/Gizmos/boundingBoxGizmo.js +36 -15
  234. package/Gizmos/boundingBoxGizmo.js.map +1 -1
  235. package/Gizmos/cameraGizmo.js +1 -0
  236. package/Gizmos/cameraGizmo.js.map +1 -1
  237. package/Gizmos/gizmo.js +1 -0
  238. package/Gizmos/gizmo.js.map +1 -1
  239. package/Gizmos/gizmoManager.d.ts +18 -0
  240. package/Gizmos/gizmoManager.js +34 -0
  241. package/Gizmos/gizmoManager.js.map +1 -1
  242. package/Gizmos/lightGizmo.d.ts +1 -0
  243. package/Gizmos/lightGizmo.js +1 -0
  244. package/Gizmos/lightGizmo.js.map +1 -1
  245. package/Gizmos/planeRotationGizmo.d.ts +2 -0
  246. package/Gizmos/planeRotationGizmo.js +2 -0
  247. package/Gizmos/planeRotationGizmo.js.map +1 -1
  248. package/Gizmos/positionGizmo.d.ts +11 -0
  249. package/Gizmos/positionGizmo.js +19 -0
  250. package/Gizmos/positionGizmo.js.map +1 -1
  251. package/Gizmos/rotationGizmo.d.ts +14 -0
  252. package/Gizmos/rotationGizmo.js +14 -0
  253. package/Gizmos/rotationGizmo.js.map +1 -1
  254. package/Gizmos/scaleGizmo.d.ts +18 -1
  255. package/Gizmos/scaleGizmo.js +19 -1
  256. package/Gizmos/scaleGizmo.js.map +1 -1
  257. package/Helpers/environmentHelper.d.ts +4 -2
  258. package/Helpers/environmentHelper.js +4 -2
  259. package/Helpers/environmentHelper.js.map +1 -1
  260. package/Layers/effectLayer.d.ts +1 -0
  261. package/Layers/effectLayer.js +1 -0
  262. package/Layers/effectLayer.js.map +1 -1
  263. package/Layers/glowLayer.d.ts +3 -1
  264. package/Layers/glowLayer.js +3 -1
  265. package/Layers/glowLayer.js.map +1 -1
  266. package/Layers/highlightLayer.d.ts +3 -2
  267. package/Layers/highlightLayer.js +3 -2
  268. package/Layers/highlightLayer.js.map +1 -1
  269. package/Lights/light.d.ts +1 -1
  270. package/Lights/light.js +1 -1
  271. package/Lights/light.js.map +1 -1
  272. package/Loading/sceneLoader.js +4 -0
  273. package/Loading/sceneLoader.js.map +1 -1
  274. package/Materials/Background/backgroundMaterial.d.ts +2 -2
  275. package/Materials/Background/backgroundMaterial.js +10 -9
  276. package/Materials/Background/backgroundMaterial.js.map +1 -1
  277. package/Materials/GaussianSplatting/gaussianSplattingMaterial.d.ts +72 -0
  278. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +231 -0
  279. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -0
  280. package/Materials/GreasedLine/greasedLinePluginMaterial.d.ts +0 -1
  281. package/Materials/GreasedLine/greasedLinePluginMaterial.js +0 -1
  282. package/Materials/GreasedLine/greasedLinePluginMaterial.js.map +1 -1
  283. package/Materials/GreasedLine/greasedLineSimpleMaterial.d.ts +0 -1
  284. package/Materials/GreasedLine/greasedLineSimpleMaterial.js +0 -1
  285. package/Materials/GreasedLine/greasedLineSimpleMaterial.js.map +1 -1
  286. package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.d.ts +2 -1
  287. package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js +1 -1
  288. package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js.map +1 -1
  289. package/Materials/Node/Blocks/Fragment/fragCoordBlock.js +1 -0
  290. package/Materials/Node/Blocks/Fragment/fragCoordBlock.js.map +1 -1
  291. package/Materials/Node/Blocks/Fragment/frontFacingBlock.js +1 -0
  292. package/Materials/Node/Blocks/Fragment/frontFacingBlock.js.map +1 -1
  293. package/Materials/Node/Blocks/Fragment/screenSizeBlock.js +1 -0
  294. package/Materials/Node/Blocks/Fragment/screenSizeBlock.js.map +1 -1
  295. package/Materials/Node/Blocks/Teleport/teleportInBlock.d.ts +3 -1
  296. package/Materials/Node/Blocks/Teleport/teleportInBlock.js +3 -1
  297. package/Materials/Node/Blocks/Teleport/teleportInBlock.js.map +1 -1
  298. package/Materials/Node/Blocks/triPlanarBlock.d.ts +1 -0
  299. package/Materials/Node/Blocks/triPlanarBlock.js +1 -0
  300. package/Materials/Node/Blocks/triPlanarBlock.js.map +1 -1
  301. package/Materials/Node/Blocks/worleyNoise3DBlock.d.ts +2 -0
  302. package/Materials/Node/Blocks/worleyNoise3DBlock.js +2 -0
  303. package/Materials/Node/Blocks/worleyNoise3DBlock.js.map +1 -1
  304. package/Materials/Node/nodeMaterial.d.ts +10 -3
  305. package/Materials/Node/nodeMaterial.js +23 -15
  306. package/Materials/Node/nodeMaterial.js.map +1 -1
  307. package/Materials/Node/nodeMaterialBlock.d.ts +3 -1
  308. package/Materials/Node/nodeMaterialBlock.js +4 -1
  309. package/Materials/Node/nodeMaterialBlock.js.map +1 -1
  310. package/Materials/Node/nodeMaterialBlockConnectionPoint.js +1 -0
  311. package/Materials/Node/nodeMaterialBlockConnectionPoint.js.map +1 -1
  312. package/Materials/Node/nodeMaterialBuildStateSharedData.js +1 -0
  313. package/Materials/Node/nodeMaterialBuildStateSharedData.js.map +1 -1
  314. package/Materials/PBR/pbrBaseMaterial.d.ts +7 -6
  315. package/Materials/PBR/pbrBaseMaterial.js +15 -13
  316. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  317. package/Materials/PBR/pbrMaterial.d.ts +2 -1
  318. package/Materials/PBR/pbrMaterial.js +2 -1
  319. package/Materials/PBR/pbrMaterial.js.map +1 -1
  320. package/Materials/PBR/pbrMetallicRoughnessMaterial.d.ts +4 -1
  321. package/Materials/PBR/pbrMetallicRoughnessMaterial.js +4 -1
  322. package/Materials/PBR/pbrMetallicRoughnessMaterial.js.map +1 -1
  323. package/Materials/PBR/pbrSpecularGlossinessMaterial.d.ts +4 -1
  324. package/Materials/PBR/pbrSpecularGlossinessMaterial.js +4 -1
  325. package/Materials/PBR/pbrSpecularGlossinessMaterial.js.map +1 -1
  326. package/Materials/Textures/Loaders/envTextureLoader.js +1 -0
  327. package/Materials/Textures/Loaders/envTextureLoader.js.map +1 -1
  328. package/Materials/Textures/Loaders/hdrTextureLoader.js +1 -0
  329. package/Materials/Textures/Loaders/hdrTextureLoader.js.map +1 -1
  330. package/Materials/Textures/Loaders/tgaTextureLoader.js +1 -0
  331. package/Materials/Textures/Loaders/tgaTextureLoader.js.map +1 -1
  332. package/Materials/Textures/Packer/packer.d.ts +0 -1
  333. package/Materials/Textures/Packer/packer.js +0 -1
  334. package/Materials/Textures/Packer/packer.js.map +1 -1
  335. package/Materials/Textures/colorGradingTexture.d.ts +4 -1
  336. package/Materials/Textures/colorGradingTexture.js +4 -1
  337. package/Materials/Textures/colorGradingTexture.js.map +1 -1
  338. package/Materials/Textures/equiRectangularCubeTexture.d.ts +1 -0
  339. package/Materials/Textures/equiRectangularCubeTexture.js +1 -0
  340. package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
  341. package/Materials/Textures/hdrCubeTexture.d.ts +3 -2
  342. package/Materials/Textures/hdrCubeTexture.js +3 -2
  343. package/Materials/Textures/hdrCubeTexture.js.map +1 -1
  344. package/Materials/Textures/htmlElementTexture.d.ts +1 -1
  345. package/Materials/Textures/htmlElementTexture.js +1 -1
  346. package/Materials/Textures/htmlElementTexture.js.map +1 -1
  347. package/Materials/drawWrapper.d.ts +15 -0
  348. package/Materials/drawWrapper.js +15 -0
  349. package/Materials/drawWrapper.js.map +1 -1
  350. package/Materials/effect.d.ts +0 -16
  351. package/Materials/effect.js +0 -16
  352. package/Materials/effect.js.map +1 -1
  353. package/Materials/effectRenderer.js +0 -1
  354. package/Materials/effectRenderer.js.map +1 -1
  355. package/Materials/index.d.ts +1 -0
  356. package/Materials/index.js +1 -0
  357. package/Materials/index.js.map +1 -1
  358. package/Materials/material.d.ts +4 -2
  359. package/Materials/material.decalMapConfiguration.d.ts +0 -5
  360. package/Materials/material.decalMapConfiguration.js +5 -5
  361. package/Materials/material.decalMapConfiguration.js.map +1 -1
  362. package/Materials/material.js +15 -12
  363. package/Materials/material.js.map +1 -1
  364. package/Materials/materialHelper.d.ts +1 -1
  365. package/Materials/materialHelper.js +4 -3
  366. package/Materials/materialHelper.js.map +1 -1
  367. package/Materials/materialPluginManager.js +1 -0
  368. package/Materials/materialPluginManager.js.map +1 -1
  369. package/Materials/pushMaterial.d.ts +2 -2
  370. package/Materials/pushMaterial.js +9 -6
  371. package/Materials/pushMaterial.js.map +1 -1
  372. package/Materials/shaderMaterial.js +10 -16
  373. package/Materials/shaderMaterial.js.map +1 -1
  374. package/Materials/standardMaterial.d.ts +2 -2
  375. package/Materials/standardMaterial.js +10 -9
  376. package/Materials/standardMaterial.js.map +1 -1
  377. package/Materials/uniformBuffer.js +2 -1
  378. package/Materials/uniformBuffer.js.map +1 -1
  379. package/Maths/math.path.d.ts +2 -1
  380. package/Maths/math.path.js +2 -1
  381. package/Maths/math.path.js.map +1 -1
  382. package/Maths/math.vector.d.ts +11 -4
  383. package/Maths/math.vector.js +11 -4
  384. package/Maths/math.vector.js.map +1 -1
  385. package/Meshes/Builders/boxBuilder.d.ts +0 -33
  386. package/Meshes/Builders/boxBuilder.js +0 -33
  387. package/Meshes/Builders/boxBuilder.js.map +1 -1
  388. package/Meshes/Builders/cylinderBuilder.d.ts +0 -31
  389. package/Meshes/Builders/cylinderBuilder.js +0 -31
  390. package/Meshes/Builders/cylinderBuilder.js.map +1 -1
  391. package/Meshes/Builders/decalBuilder.d.ts +0 -7
  392. package/Meshes/Builders/decalBuilder.js +0 -7
  393. package/Meshes/Builders/decalBuilder.js.map +1 -1
  394. package/Meshes/Builders/discBuilder.d.ts +0 -13
  395. package/Meshes/Builders/discBuilder.js +0 -13
  396. package/Meshes/Builders/discBuilder.js.map +1 -1
  397. package/Meshes/Builders/geodesicBuilder.d.ts +0 -13
  398. package/Meshes/Builders/geodesicBuilder.js +0 -13
  399. package/Meshes/Builders/geodesicBuilder.js.map +1 -1
  400. package/Meshes/Builders/hemisphereBuilder.d.ts +0 -3
  401. package/Meshes/Builders/hemisphereBuilder.js +1 -3
  402. package/Meshes/Builders/hemisphereBuilder.js.map +1 -1
  403. package/Meshes/Builders/icoSphereBuilder.d.ts +0 -19
  404. package/Meshes/Builders/icoSphereBuilder.js +0 -19
  405. package/Meshes/Builders/icoSphereBuilder.js.map +1 -1
  406. package/Meshes/Builders/latheBuilder.d.ts +0 -12
  407. package/Meshes/Builders/latheBuilder.js +0 -12
  408. package/Meshes/Builders/latheBuilder.js.map +1 -1
  409. package/Meshes/Builders/linesBuilder.d.ts +0 -26
  410. package/Meshes/Builders/linesBuilder.js +0 -26
  411. package/Meshes/Builders/linesBuilder.js.map +1 -1
  412. package/Meshes/Builders/planeBuilder.d.ts +0 -14
  413. package/Meshes/Builders/planeBuilder.js +0 -14
  414. package/Meshes/Builders/planeBuilder.js.map +1 -1
  415. package/Meshes/Builders/polygonBuilder.d.ts +0 -21
  416. package/Meshes/Builders/polygonBuilder.js +0 -21
  417. package/Meshes/Builders/polygonBuilder.js.map +1 -1
  418. package/Meshes/Builders/polyhedronBuilder.d.ts +0 -25
  419. package/Meshes/Builders/polyhedronBuilder.js +0 -25
  420. package/Meshes/Builders/polyhedronBuilder.js.map +1 -1
  421. package/Meshes/Builders/ribbonBuilder.d.ts +0 -22
  422. package/Meshes/Builders/ribbonBuilder.js +0 -22
  423. package/Meshes/Builders/ribbonBuilder.js.map +1 -1
  424. package/Meshes/Builders/shapeBuilder.d.ts +0 -32
  425. package/Meshes/Builders/shapeBuilder.js +0 -32
  426. package/Meshes/Builders/shapeBuilder.js.map +1 -1
  427. package/Meshes/Builders/sphereBuilder.d.ts +0 -22
  428. package/Meshes/Builders/sphereBuilder.js +0 -22
  429. package/Meshes/Builders/sphereBuilder.js.map +1 -1
  430. package/Meshes/Builders/textBuilder.d.ts +26 -5
  431. package/Meshes/Builders/textBuilder.js +26 -5
  432. package/Meshes/Builders/textBuilder.js.map +1 -1
  433. package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +84 -0
  434. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +288 -0
  435. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -0
  436. package/Meshes/GreasedLine/greasedLineRibbonMesh.js +7 -0
  437. package/Meshes/GreasedLine/greasedLineRibbonMesh.js.map +1 -1
  438. package/Meshes/Node/Blocks/geometryCurveBlock.d.ts +92 -0
  439. package/Meshes/Node/Blocks/geometryCurveBlock.js +292 -0
  440. package/Meshes/Node/Blocks/geometryCurveBlock.js.map +1 -0
  441. package/Meshes/Node/Blocks/geometryDesaturateBlock.d.ts +30 -0
  442. package/Meshes/Node/Blocks/geometryDesaturateBlock.js +62 -0
  443. package/Meshes/Node/Blocks/geometryDesaturateBlock.js.map +1 -0
  444. package/Meshes/Node/Blocks/noiseBlock.d.ts +5 -3
  445. package/Meshes/Node/Blocks/noiseBlock.js +5 -3
  446. package/Meshes/Node/Blocks/noiseBlock.js.map +1 -1
  447. package/Meshes/Node/index.d.ts +2 -0
  448. package/Meshes/Node/index.js +2 -0
  449. package/Meshes/Node/index.js.map +1 -1
  450. package/Meshes/Node/nodeGeometry.d.ts +6 -2
  451. package/Meshes/Node/nodeGeometry.js +7 -2
  452. package/Meshes/Node/nodeGeometry.js.map +1 -1
  453. package/Meshes/Node/nodeGeometryBlockConnectionPoint.js +1 -0
  454. package/Meshes/Node/nodeGeometryBlockConnectionPoint.js.map +1 -1
  455. package/Meshes/Node/nodeGeometryBuildState.js +1 -0
  456. package/Meshes/Node/nodeGeometryBuildState.js.map +1 -1
  457. package/Meshes/abstractMesh.d.ts +1 -0
  458. package/Meshes/abstractMesh.js +4 -0
  459. package/Meshes/abstractMesh.js.map +1 -1
  460. package/Meshes/csg.d.ts +7 -1
  461. package/Meshes/csg.js +9 -1
  462. package/Meshes/csg.js.map +1 -1
  463. package/Meshes/index.d.ts +1 -0
  464. package/Meshes/index.js +1 -0
  465. package/Meshes/index.js.map +1 -1
  466. package/Meshes/instancedMesh.d.ts +7 -3
  467. package/Meshes/instancedMesh.js +7 -3
  468. package/Meshes/instancedMesh.js.map +1 -1
  469. package/Meshes/linesMesh.d.ts +3 -2
  470. package/Meshes/linesMesh.js +3 -2
  471. package/Meshes/linesMesh.js.map +1 -1
  472. package/Meshes/mesh.d.ts +1 -0
  473. package/Meshes/mesh.js +5 -4
  474. package/Meshes/mesh.js.map +1 -1
  475. package/Meshes/mesh.vertexData.d.ts +0 -145
  476. package/Meshes/mesh.vertexData.js +0 -145
  477. package/Meshes/mesh.vertexData.js.map +1 -1
  478. package/Meshes/transformNode.d.ts +1 -1
  479. package/Meshes/transformNode.js +1 -1
  480. package/Meshes/transformNode.js.map +1 -1
  481. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.d.ts +1 -0
  482. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js +1 -0
  483. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js.map +1 -1
  484. package/Misc/HighDynamicRange/hdr.js +7 -0
  485. package/Misc/HighDynamicRange/hdr.js.map +1 -1
  486. package/Misc/HighDynamicRange/panoramaToCubemap.js +2 -0
  487. package/Misc/HighDynamicRange/panoramaToCubemap.js.map +1 -1
  488. package/Misc/assetsManager.d.ts +3 -0
  489. package/Misc/assetsManager.js +3 -0
  490. package/Misc/assetsManager.js.map +1 -1
  491. package/Misc/basis.js +1 -0
  492. package/Misc/basis.js.map +1 -1
  493. package/Misc/decorators.d.ts +1 -0
  494. package/Misc/decorators.js +2 -1
  495. package/Misc/decorators.js.map +1 -1
  496. package/Misc/fileTools.js +2 -0
  497. package/Misc/fileTools.js.map +1 -1
  498. package/Misc/filesInput.d.ts +7 -2
  499. package/Misc/filesInput.js +7 -2
  500. package/Misc/filesInput.js.map +1 -1
  501. package/Misc/greasedLineTools.d.ts +1 -0
  502. package/Misc/greasedLineTools.js +1 -0
  503. package/Misc/greasedLineTools.js.map +1 -1
  504. package/Misc/textureTools.d.ts +2 -0
  505. package/Misc/textureTools.js +2 -0
  506. package/Misc/textureTools.js.map +1 -1
  507. package/Misc/timer.d.ts +2 -1
  508. package/Misc/timer.js +1 -0
  509. package/Misc/timer.js.map +1 -1
  510. package/Misc/tools.d.ts +2 -2
  511. package/Misc/tools.js +6 -2
  512. package/Misc/tools.js.map +1 -1
  513. package/Misc/videoRecorder.js +4 -0
  514. package/Misc/videoRecorder.js.map +1 -1
  515. package/Misc/webRequest.js +1 -1
  516. package/Misc/webRequest.js.map +1 -1
  517. package/Morph/morphTargetManager.d.ts +11 -0
  518. package/Morph/morphTargetManager.js +22 -2
  519. package/Morph/morphTargetManager.js.map +1 -1
  520. package/Particles/EmitterTypes/customParticleEmitter.js +10 -2
  521. package/Particles/EmitterTypes/customParticleEmitter.js.map +1 -1
  522. package/Particles/EmitterTypes/cylinderParticleEmitter.d.ts +3 -1
  523. package/Particles/EmitterTypes/cylinderParticleEmitter.js +7 -1
  524. package/Particles/EmitterTypes/cylinderParticleEmitter.js.map +1 -1
  525. package/Particles/IParticleSystem.d.ts +2 -2
  526. package/Particles/IParticleSystem.js.map +1 -1
  527. package/Particles/gpuParticleSystem.js +1 -0
  528. package/Particles/gpuParticleSystem.js.map +1 -1
  529. package/Particles/particleSystem.d.ts +1 -2
  530. package/Particles/particleSystem.js +5 -1
  531. package/Particles/particleSystem.js.map +1 -1
  532. package/Particles/solidParticleSystem.d.ts +1 -1
  533. package/Particles/solidParticleSystem.js +1 -1
  534. package/Particles/solidParticleSystem.js.map +1 -1
  535. package/Physics/castingResult.d.ts +66 -0
  536. package/Physics/castingResult.js +61 -0
  537. package/Physics/castingResult.js.map +1 -0
  538. package/Physics/index.d.ts +4 -0
  539. package/Physics/index.js +4 -0
  540. package/Physics/index.js.map +1 -1
  541. package/Physics/physicsHelper.d.ts +1 -0
  542. package/Physics/physicsHelper.js +1 -0
  543. package/Physics/physicsHelper.js.map +1 -1
  544. package/Physics/physicsPointProximityQuery.d.ts +28 -0
  545. package/Physics/physicsPointProximityQuery.js +2 -0
  546. package/Physics/physicsPointProximityQuery.js.map +1 -0
  547. package/Physics/physicsRaycastResult.d.ts +2 -44
  548. package/Physics/physicsRaycastResult.js +7 -38
  549. package/Physics/physicsRaycastResult.js.map +1 -1
  550. package/Physics/physicsShapeCastQuery.d.ts +32 -0
  551. package/Physics/physicsShapeCastQuery.js +2 -0
  552. package/Physics/physicsShapeCastQuery.js.map +1 -0
  553. package/Physics/physicsShapeProximityCastQuery.d.ts +32 -0
  554. package/Physics/physicsShapeProximityCastQuery.js +2 -0
  555. package/Physics/physicsShapeProximityCastQuery.js.map +1 -0
  556. package/Physics/proximityCastResult.d.ts +20 -0
  557. package/Physics/proximityCastResult.js +31 -0
  558. package/Physics/proximityCastResult.js.map +1 -0
  559. package/Physics/shapeCastResult.d.ts +16 -0
  560. package/Physics/shapeCastResult.js +24 -0
  561. package/Physics/shapeCastResult.js.map +1 -0
  562. package/Physics/v1/Plugins/ammoJSPlugin.d.ts +5 -0
  563. package/Physics/v1/Plugins/ammoJSPlugin.js +6 -0
  564. package/Physics/v1/Plugins/ammoJSPlugin.js.map +1 -1
  565. package/Physics/v1/physicsEngine.d.ts +2 -0
  566. package/Physics/v1/physicsEngine.js +2 -0
  567. package/Physics/v1/physicsEngine.js.map +1 -1
  568. package/Physics/v1/physicsImpostor.d.ts +0 -1
  569. package/Physics/v1/physicsImpostor.js +0 -1
  570. package/Physics/v1/physicsImpostor.js.map +1 -1
  571. package/Physics/v2/IPhysicsEnginePlugin.d.ts +1 -0
  572. package/Physics/v2/IPhysicsEnginePlugin.js.map +1 -1
  573. package/Physics/v2/Plugins/havokPlugin.d.ts +40 -6
  574. package/Physics/v2/Plugins/havokPlugin.js +118 -17
  575. package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
  576. package/Physics/v2/physicsBody.d.ts +8 -0
  577. package/Physics/v2/physicsBody.js +18 -4
  578. package/Physics/v2/physicsBody.js.map +1 -1
  579. package/Physics/v2/physicsConstraint.d.ts +0 -2
  580. package/Physics/v2/physicsConstraint.js +0 -2
  581. package/Physics/v2/physicsConstraint.js.map +1 -1
  582. package/Physics/v2/physicsEngine.d.ts +1 -2
  583. package/Physics/v2/physicsEngine.js +2 -2
  584. package/Physics/v2/physicsEngine.js.map +1 -1
  585. package/Physics/v2/physicsShape.d.ts +2 -0
  586. package/Physics/v2/physicsShape.js +5 -0
  587. package/Physics/v2/physicsShape.js.map +1 -1
  588. package/PostProcesses/motionBlurPostProcess.d.ts +1 -0
  589. package/PostProcesses/motionBlurPostProcess.js +1 -0
  590. package/PostProcesses/motionBlurPostProcess.js.map +1 -1
  591. package/PostProcesses/postProcess.d.ts +0 -1
  592. package/PostProcesses/postProcess.js +0 -1
  593. package/PostProcesses/postProcess.js.map +1 -1
  594. package/Rendering/depthRendererSceneComponent.js +1 -0
  595. package/Rendering/depthRendererSceneComponent.js.map +1 -1
  596. package/Rendering/fluidRenderer/fluidRenderingObject.d.ts +1 -1
  597. package/Rendering/fluidRenderer/fluidRenderingObject.js +1 -1
  598. package/Rendering/fluidRenderer/fluidRenderingObject.js.map +1 -1
  599. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.d.ts +1 -1
  600. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.js +1 -1
  601. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.js.map +1 -1
  602. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.d.ts +1 -1
  603. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.js +1 -1
  604. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.js.map +1 -1
  605. package/Rendering/geometryBufferRenderer.d.ts +2 -2
  606. package/Rendering/geometryBufferRenderer.js +2 -2
  607. package/Rendering/geometryBufferRenderer.js.map +1 -1
  608. package/Rendering/index.d.ts +0 -1
  609. package/Rendering/index.js +0 -1
  610. package/Rendering/index.js.map +1 -1
  611. package/Rendering/renderingGroup.d.ts +0 -1
  612. package/Rendering/renderingGroup.js +3 -4
  613. package/Rendering/renderingGroup.js.map +1 -1
  614. package/Rendering/renderingManager.d.ts +1 -1
  615. package/Rendering/renderingManager.js +1 -1
  616. package/Rendering/renderingManager.js.map +1 -1
  617. package/Rendering/subSurfaceConfiguration.d.ts +1 -0
  618. package/Rendering/subSurfaceConfiguration.js +1 -0
  619. package/Rendering/subSurfaceConfiguration.js.map +1 -1
  620. package/Shaders/ShadersInclude/gaussianSplattingUboDeclaration.d.ts +7 -0
  621. package/Shaders/ShadersInclude/gaussianSplattingUboDeclaration.js +13 -0
  622. package/Shaders/ShadersInclude/gaussianSplattingUboDeclaration.js.map +1 -0
  623. package/Shaders/ShadersInclude/gaussianSplattingVertexDeclaration.d.ts +5 -0
  624. package/Shaders/ShadersInclude/gaussianSplattingVertexDeclaration.js +10 -0
  625. package/Shaders/ShadersInclude/gaussianSplattingVertexDeclaration.js.map +1 -0
  626. package/Shaders/ShadersInclude/morphTargetsVertex.js +8 -5
  627. package/Shaders/ShadersInclude/morphTargetsVertex.js.map +1 -1
  628. package/Shaders/ShadersInclude/morphTargetsVertexDeclaration.js +2 -0
  629. package/Shaders/ShadersInclude/morphTargetsVertexDeclaration.js.map +1 -1
  630. package/Shaders/gaussianSplatting.fragment.d.ts +11 -0
  631. package/Shaders/gaussianSplatting.fragment.js +27 -0
  632. package/Shaders/gaussianSplatting.fragment.js.map +1 -0
  633. package/Shaders/gaussianSplatting.vertex.d.ts +13 -0
  634. package/Shaders/gaussianSplatting.vertex.js +49 -0
  635. package/Shaders/gaussianSplatting.vertex.js.map +1 -0
  636. package/ShadersWGSL/ShadersInclude/morphTargetsVertex.js +5 -1
  637. package/ShadersWGSL/ShadersInclude/morphTargetsVertex.js.map +1 -1
  638. package/ShadersWGSL/ShadersInclude/morphTargetsVertexDeclaration.js +2 -0
  639. package/ShadersWGSL/ShadersInclude/morphTargetsVertexDeclaration.js.map +1 -1
  640. package/XR/features/WebXRAbstractFeature.d.ts +3 -1
  641. package/XR/features/WebXRAbstractFeature.js +20 -4
  642. package/XR/features/WebXRAbstractFeature.js.map +1 -1
  643. package/XR/features/WebXRAnchorSystem.d.ts +1 -0
  644. package/XR/features/WebXRAnchorSystem.js +1 -0
  645. package/XR/features/WebXRAnchorSystem.js.map +1 -1
  646. package/XR/features/WebXRControllerTeleportation.js +9 -2
  647. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  648. package/XR/features/WebXREyeTracking.js +1 -1
  649. package/XR/features/WebXREyeTracking.js.map +1 -1
  650. package/XR/features/WebXRHandTracking.d.ts +4 -1
  651. package/XR/features/WebXRHandTracking.js +17 -4
  652. package/XR/features/WebXRHandTracking.js.map +1 -1
  653. package/XR/features/WebXRHitTest.js +1 -1
  654. package/XR/features/WebXRHitTest.js.map +1 -1
  655. package/XR/features/WebXRNearInteraction.d.ts +6 -3
  656. package/XR/features/WebXRNearInteraction.js +30 -15
  657. package/XR/features/WebXRNearInteraction.js.map +1 -1
  658. package/XR/features/WebXRPlaneDetector.d.ts +2 -0
  659. package/XR/features/WebXRPlaneDetector.js +2 -0
  660. package/XR/features/WebXRPlaneDetector.js.map +1 -1
  661. package/XR/features/WebXRRawCameraAccess.d.ts +2 -0
  662. package/XR/features/WebXRRawCameraAccess.js +2 -0
  663. package/XR/features/WebXRRawCameraAccess.js.map +1 -1
  664. package/XR/motionController/webXROculusTouchMotionController.d.ts +1 -0
  665. package/XR/motionController/webXROculusTouchMotionController.js +1 -0
  666. package/XR/motionController/webXROculusTouchMotionController.js.map +1 -1
  667. package/XR/webXRCamera.d.ts +3 -0
  668. package/XR/webXRCamera.js +27 -14
  669. package/XR/webXRCamera.js.map +1 -1
  670. package/XR/webXRExperienceHelper.js +1 -0
  671. package/XR/webXRExperienceHelper.js.map +1 -1
  672. package/XR/webXRInput.js +1 -1
  673. package/XR/webXRInput.js.map +1 -1
  674. package/XR/webXRInputSource.d.ts +3 -1
  675. package/XR/webXRInputSource.js +6 -3
  676. package/XR/webXRInputSource.js.map +1 -1
  677. package/XR/webXRSessionManager.d.ts +13 -0
  678. package/XR/webXRSessionManager.js +21 -1
  679. package/XR/webXRSessionManager.js.map +1 -1
  680. package/assetContainer.d.ts +4 -1
  681. package/assetContainer.js +4 -1
  682. package/assetContainer.js.map +1 -1
  683. package/package.json +1 -1
  684. package/scene.d.ts +1 -0
  685. package/scene.js +11 -0
  686. package/scene.js.map +1 -1
  687. package/Rendering/GaussianSplatting/gaussianSplatting.d.ts +0 -81
  688. package/Rendering/GaussianSplatting/gaussianSplatting.js +0 -400
  689. package/Rendering/GaussianSplatting/gaussianSplatting.js.map +0 -1
  690. package/Rendering/GaussianSplatting/index.d.ts +0 -1
  691. package/Rendering/GaussianSplatting/index.js +0 -2
  692. package/Rendering/GaussianSplatting/index.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { Vector3 } from "../Maths/math.vector";
2
- import type { PhysicsBody } from "./v2/physicsBody";
2
+ import { CastingResult } from "./castingResult";
3
3
  /**
4
4
  * Interface for query parameters in the raycast function.
5
5
  * @see the "Collision Filtering" section in https://github.com/eoineoineoin/glTF/tree/MSFT_RigidBodies/extensions/2.0/Vendor/MSFT_collision_primitives
@@ -14,26 +14,10 @@ export interface IRaycastQuery {
14
14
  * Holds the data for the raycast result
15
15
  * @see https://doc.babylonjs.com/features/featuresDeepDive/physics/usingPhysicsEngine
16
16
  */
17
- export declare class PhysicsRaycastResult {
18
- private _hasHit;
17
+ export declare class PhysicsRaycastResult extends CastingResult {
19
18
  private _hitDistance;
20
- private _hitNormalWorld;
21
- private _hitPointWorld;
22
19
  private _rayFromWorld;
23
20
  private _rayToWorld;
24
- private _triangleIndex;
25
- /**
26
- * The Physics body that the ray hit
27
- */
28
- body?: PhysicsBody;
29
- /**
30
- * The body Index in case the Physics body is using instances
31
- */
32
- bodyIndex?: number;
33
- /**
34
- * Gets if there was a hit
35
- */
36
- get hasHit(): boolean;
37
21
  /**
38
22
  * Gets the distance from the hit
39
23
  */
@@ -54,14 +38,6 @@ export declare class PhysicsRaycastResult {
54
38
  * Gets the ray "end point" of the ray in the world
55
39
  */
56
40
  get rayToWorld(): Vector3;
57
- get triangleIndex(): number;
58
- /**
59
- * Sets the hit data (normal & point in world space)
60
- * @param hitNormalWorld defines the normal in world space
61
- * @param hitPointWorld defines the point in world space
62
- * @param triangleIndex defines the index of the triangle in case of mesh intersection
63
- */
64
- setHitData(hitNormalWorld: IXYZ, hitPointWorld: IXYZ, triangleIndex?: number): void;
65
41
  /**
66
42
  * Sets the distance from the start point to the hit point
67
43
  * @param distance defines the distance to set
@@ -78,21 +54,3 @@ export declare class PhysicsRaycastResult {
78
54
  */
79
55
  reset(from?: Vector3, to?: Vector3): void;
80
56
  }
81
- /**
82
- * Interface for the size containing width and height
83
- */
84
- interface IXYZ {
85
- /**
86
- * X
87
- */
88
- x: number;
89
- /**
90
- * Y
91
- */
92
- y: number;
93
- /**
94
- * Z
95
- */
96
- z: number;
97
- }
98
- export {};
@@ -1,23 +1,15 @@
1
1
  import { Vector3 } from "../Maths/math.vector.js";
2
+ import { CastingResult } from "./castingResult.js";
2
3
  /**
3
4
  * Holds the data for the raycast result
4
5
  * @see https://doc.babylonjs.com/features/featuresDeepDive/physics/usingPhysicsEngine
5
6
  */
6
- export class PhysicsRaycastResult {
7
+ export class PhysicsRaycastResult extends CastingResult {
7
8
  constructor() {
8
- this._hasHit = false;
9
+ super(...arguments);
9
10
  this._hitDistance = 0;
10
- this._hitNormalWorld = Vector3.Zero();
11
- this._hitPointWorld = Vector3.Zero();
12
11
  this._rayFromWorld = Vector3.Zero();
13
12
  this._rayToWorld = Vector3.Zero();
14
- this._triangleIndex = -1;
15
- }
16
- /**
17
- * Gets if there was a hit
18
- */
19
- get hasHit() {
20
- return this._hasHit;
21
13
  }
22
14
  /**
23
15
  * Gets the distance from the hit
@@ -29,13 +21,13 @@ export class PhysicsRaycastResult {
29
21
  * Gets the hit normal/direction in the world
30
22
  */
31
23
  get hitNormalWorld() {
32
- return this._hitNormalWorld;
24
+ return this._hitNormal;
33
25
  }
34
26
  /**
35
27
  * Gets the hit point in the world
36
28
  */
37
29
  get hitPointWorld() {
38
- return this._hitPointWorld;
30
+ return this._hitPoint;
39
31
  }
40
32
  /**
41
33
  * Gets the ray "start point" of the ray in the world
@@ -49,24 +41,6 @@ export class PhysicsRaycastResult {
49
41
  get rayToWorld() {
50
42
  return this._rayToWorld;
51
43
  }
52
- /*
53
- * The index of the original triangle which was hit. Will be -1 if contact point is not on a mesh shape
54
- */
55
- get triangleIndex() {
56
- return this._triangleIndex;
57
- }
58
- /**
59
- * Sets the hit data (normal & point in world space)
60
- * @param hitNormalWorld defines the normal in world space
61
- * @param hitPointWorld defines the point in world space
62
- * @param triangleIndex defines the index of the triangle in case of mesh intersection
63
- */
64
- setHitData(hitNormalWorld, hitPointWorld, triangleIndex) {
65
- this._hasHit = true;
66
- this._hitNormalWorld.set(hitNormalWorld.x, hitNormalWorld.y, hitNormalWorld.z);
67
- this._hitPointWorld.set(hitPointWorld.x, hitPointWorld.y, hitPointWorld.z);
68
- this._triangleIndex = triangleIndex !== null && triangleIndex !== void 0 ? triangleIndex : -1;
69
- }
70
44
  /**
71
45
  * Sets the distance from the start point to the hit point
72
46
  * @param distance defines the distance to set
@@ -78,7 +52,7 @@ export class PhysicsRaycastResult {
78
52
  * Calculates the distance manually
79
53
  */
80
54
  calculateHitDistance() {
81
- this._hitDistance = Vector3.Distance(this._rayFromWorld, this._hitPointWorld);
55
+ this._hitDistance = Vector3.Distance(this._rayFromWorld, this._hitPoint);
82
56
  }
83
57
  /**
84
58
  * Resets all the values to default
@@ -86,15 +60,10 @@ export class PhysicsRaycastResult {
86
60
  * @param to The to point on world space
87
61
  */
88
62
  reset(from = Vector3.Zero(), to = Vector3.Zero()) {
63
+ super.reset();
89
64
  this._rayFromWorld.copyFrom(from);
90
65
  this._rayToWorld.copyFrom(to);
91
- this._hasHit = false;
92
66
  this._hitDistance = 0;
93
- this._hitNormalWorld.setAll(0);
94
- this._hitPointWorld.setAll(0);
95
- this._triangleIndex = -1;
96
- this.body = undefined;
97
- this.bodyIndex = undefined;
98
67
  }
99
68
  }
100
69
  //# sourceMappingURL=physicsRaycastResult.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"physicsRaycastResult.js","sourceRoot":"","sources":["../../../../dev/core/src/Physics/physicsRaycastResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAc/C;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAAjC;QACY,YAAO,GAAY,KAAK,CAAC;QAEzB,iBAAY,GAAW,CAAC,CAAC;QACzB,oBAAe,GAAY,OAAO,CAAC,IAAI,EAAE,CAAC;QAC1C,mBAAc,GAAY,OAAO,CAAC,IAAI,EAAE,CAAC;QACzC,kBAAa,GAAY,OAAO,CAAC,IAAI,EAAE,CAAC;QACxC,gBAAW,GAAY,OAAO,CAAC,IAAI,EAAE,CAAC;QACtC,mBAAc,GAAW,CAAC,CAAC,CAAC;IA2GxC,CAAC;IAhGG;;OAEG;IACH,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED;;;;;OAKG;IACI,UAAU,CAAC,cAAoB,EAAE,aAAmB,EAAE,aAAsB;QAC/E,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;QAC/E,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC3E,IAAI,CAAC,cAAc,GAAG,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACI,cAAc,CAAC,QAAgB;QAClC,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC;IACjC,CAAC;IAED;;OAEG;IACI,oBAAoB;QACvB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IAClF,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAAgB,OAAO,CAAC,IAAI,EAAE,EAAE,KAAc,OAAO,CAAC,IAAI,EAAE;QACrE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAE9B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;QAEtB,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;QAEzB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;CACJ","sourcesContent":["import { Vector3 } from \"../Maths/math.vector\";\r\nimport type { PhysicsBody } from \"./v2/physicsBody\";\r\n\r\n/**\r\n * Interface for query parameters in the raycast function.\r\n * @see the \"Collision Filtering\" section in https://github.com/eoineoineoin/glTF/tree/MSFT_RigidBodies/extensions/2.0/Vendor/MSFT_collision_primitives\r\n */\r\nexport interface IRaycastQuery {\r\n /** Membership mask */\r\n membership?: number;\r\n /** CollideWith mask */\r\n collideWith?: number;\r\n}\r\n\r\n/**\r\n * Holds the data for the raycast result\r\n * @see https://doc.babylonjs.com/features/featuresDeepDive/physics/usingPhysicsEngine\r\n */\r\nexport class PhysicsRaycastResult {\r\n private _hasHit: boolean = false;\r\n\r\n private _hitDistance: number = 0;\r\n private _hitNormalWorld: Vector3 = Vector3.Zero();\r\n private _hitPointWorld: Vector3 = Vector3.Zero();\r\n private _rayFromWorld: Vector3 = Vector3.Zero();\r\n private _rayToWorld: Vector3 = Vector3.Zero();\r\n private _triangleIndex: number = -1;\r\n\r\n /**\r\n * The Physics body that the ray hit\r\n */\r\n public body?: PhysicsBody;\r\n /**\r\n * The body Index in case the Physics body is using instances\r\n */\r\n public bodyIndex?: number;\r\n\r\n /**\r\n * Gets if there was a hit\r\n */\r\n get hasHit(): boolean {\r\n return this._hasHit;\r\n }\r\n\r\n /**\r\n * Gets the distance from the hit\r\n */\r\n get hitDistance(): number {\r\n return this._hitDistance;\r\n }\r\n\r\n /**\r\n * Gets the hit normal/direction in the world\r\n */\r\n get hitNormalWorld(): Vector3 {\r\n return this._hitNormalWorld;\r\n }\r\n\r\n /**\r\n * Gets the hit point in the world\r\n */\r\n get hitPointWorld(): Vector3 {\r\n return this._hitPointWorld;\r\n }\r\n\r\n /**\r\n * Gets the ray \"start point\" of the ray in the world\r\n */\r\n get rayFromWorld(): Vector3 {\r\n return this._rayFromWorld;\r\n }\r\n\r\n /**\r\n * Gets the ray \"end point\" of the ray in the world\r\n */\r\n get rayToWorld(): Vector3 {\r\n return this._rayToWorld;\r\n }\r\n\r\n /*\r\n * The index of the original triangle which was hit. Will be -1 if contact point is not on a mesh shape\r\n */\r\n get triangleIndex(): number {\r\n return this._triangleIndex;\r\n }\r\n\r\n /**\r\n * Sets the hit data (normal & point in world space)\r\n * @param hitNormalWorld defines the normal in world space\r\n * @param hitPointWorld defines the point in world space\r\n * @param triangleIndex defines the index of the triangle in case of mesh intersection\r\n */\r\n public setHitData(hitNormalWorld: IXYZ, hitPointWorld: IXYZ, triangleIndex?: number) {\r\n this._hasHit = true;\r\n this._hitNormalWorld.set(hitNormalWorld.x, hitNormalWorld.y, hitNormalWorld.z);\r\n this._hitPointWorld.set(hitPointWorld.x, hitPointWorld.y, hitPointWorld.z);\r\n this._triangleIndex = triangleIndex ?? -1;\r\n }\r\n\r\n /**\r\n * Sets the distance from the start point to the hit point\r\n * @param distance defines the distance to set\r\n */\r\n public setHitDistance(distance: number) {\r\n this._hitDistance = distance;\r\n }\r\n\r\n /**\r\n * Calculates the distance manually\r\n */\r\n public calculateHitDistance() {\r\n this._hitDistance = Vector3.Distance(this._rayFromWorld, this._hitPointWorld);\r\n }\r\n\r\n /**\r\n * Resets all the values to default\r\n * @param from The from point on world space\r\n * @param to The to point on world space\r\n */\r\n public reset(from: Vector3 = Vector3.Zero(), to: Vector3 = Vector3.Zero()) {\r\n this._rayFromWorld.copyFrom(from);\r\n this._rayToWorld.copyFrom(to);\r\n\r\n this._hasHit = false;\r\n this._hitDistance = 0;\r\n\r\n this._hitNormalWorld.setAll(0);\r\n this._hitPointWorld.setAll(0);\r\n this._triangleIndex = -1;\r\n\r\n this.body = undefined;\r\n this.bodyIndex = undefined;\r\n }\r\n}\r\n\r\n/**\r\n * Interface for the size containing width and height\r\n */\r\ninterface IXYZ {\r\n /**\r\n * X\r\n */\r\n x: number;\r\n\r\n /**\r\n * Y\r\n */\r\n y: number;\r\n\r\n /**\r\n * Z\r\n */\r\n z: number;\r\n}\r\n"]}
1
+ {"version":3,"file":"physicsRaycastResult.js","sourceRoot":"","sources":["../../../../dev/core/src/Physics/physicsRaycastResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAahD;;;GAGG;AACH,MAAM,OAAO,oBAAqB,SAAQ,aAAa;IAAvD;;QACY,iBAAY,GAAW,CAAC,CAAC;QACzB,kBAAa,GAAY,OAAO,CAAC,IAAI,EAAE,CAAC;QACxC,gBAAW,GAAY,OAAO,CAAC,IAAI,EAAE,CAAC;IAgElD,CAAC;IA9DG;;OAEG;IACH,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACI,cAAc,CAAC,QAAgB;QAClC,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC;IACjC,CAAC;IAED;;OAEG;IACI,oBAAoB;QACvB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC7E,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAAgB,OAAO,CAAC,IAAI,EAAE,EAAE,KAAc,OAAO,CAAC,IAAI,EAAE;QACrE,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAE9B,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;IAC1B,CAAC;CACJ","sourcesContent":["import { Vector3 } from \"../Maths/math.vector\";\r\nimport { CastingResult } from \"./castingResult\";\r\n\r\n/**\r\n * Interface for query parameters in the raycast function.\r\n * @see the \"Collision Filtering\" section in https://github.com/eoineoineoin/glTF/tree/MSFT_RigidBodies/extensions/2.0/Vendor/MSFT_collision_primitives\r\n */\r\nexport interface IRaycastQuery {\r\n /** Membership mask */\r\n membership?: number;\r\n /** CollideWith mask */\r\n collideWith?: number;\r\n}\r\n\r\n/**\r\n * Holds the data for the raycast result\r\n * @see https://doc.babylonjs.com/features/featuresDeepDive/physics/usingPhysicsEngine\r\n */\r\nexport class PhysicsRaycastResult extends CastingResult {\r\n private _hitDistance: number = 0;\r\n private _rayFromWorld: Vector3 = Vector3.Zero();\r\n private _rayToWorld: Vector3 = Vector3.Zero();\r\n\r\n /**\r\n * Gets the distance from the hit\r\n */\r\n get hitDistance(): number {\r\n return this._hitDistance;\r\n }\r\n\r\n /**\r\n * Gets the hit normal/direction in the world\r\n */\r\n get hitNormalWorld(): Vector3 {\r\n return this._hitNormal;\r\n }\r\n\r\n /**\r\n * Gets the hit point in the world\r\n */\r\n get hitPointWorld(): Vector3 {\r\n return this._hitPoint;\r\n }\r\n\r\n /**\r\n * Gets the ray \"start point\" of the ray in the world\r\n */\r\n get rayFromWorld(): Vector3 {\r\n return this._rayFromWorld;\r\n }\r\n\r\n /**\r\n * Gets the ray \"end point\" of the ray in the world\r\n */\r\n get rayToWorld(): Vector3 {\r\n return this._rayToWorld;\r\n }\r\n\r\n /**\r\n * Sets the distance from the start point to the hit point\r\n * @param distance defines the distance to set\r\n */\r\n public setHitDistance(distance: number) {\r\n this._hitDistance = distance;\r\n }\r\n\r\n /**\r\n * Calculates the distance manually\r\n */\r\n public calculateHitDistance() {\r\n this._hitDistance = Vector3.Distance(this._rayFromWorld, this._hitPoint);\r\n }\r\n\r\n /**\r\n * Resets all the values to default\r\n * @param from The from point on world space\r\n * @param to The to point on world space\r\n */\r\n public reset(from: Vector3 = Vector3.Zero(), to: Vector3 = Vector3.Zero()) {\r\n super.reset();\r\n this._rayFromWorld.copyFrom(from);\r\n this._rayToWorld.copyFrom(to);\r\n\r\n this._hitDistance = 0;\r\n }\r\n}\r\n"]}
@@ -0,0 +1,32 @@
1
+ import type { Quaternion, Vector3 } from "../Maths/math.vector";
2
+ import type { PhysicsShape } from "./v2/physicsShape";
3
+ import type { PhysicsBody } from "./v2/physicsBody";
4
+ /**
5
+ * Shape cast query
6
+ */
7
+ export interface IPhysicsShapeCastQuery {
8
+ /**
9
+ * The shape to query with
10
+ */
11
+ shape: PhysicsShape;
12
+ /**
13
+ * The rotation of the shape
14
+ */
15
+ rotation: Quaternion;
16
+ /**
17
+ * The start position of the query
18
+ */
19
+ startPosition: Vector3;
20
+ /**
21
+ * The end position of the query
22
+ */
23
+ endPosition: Vector3;
24
+ /**
25
+ * Should trigger collisions be considered in the query?
26
+ */
27
+ shouldHitTriggers: boolean;
28
+ /**
29
+ * Ignores the body passed if it is in the query
30
+ */
31
+ ignoreBody?: PhysicsBody;
32
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=physicsShapeCastQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"physicsShapeCastQuery.js","sourceRoot":"","sources":["../../../../dev/core/src/Physics/physicsShapeCastQuery.ts"],"names":[],"mappings":"","sourcesContent":["import type { Quaternion, Vector3 } from \"../Maths/math.vector\";\r\nimport type { PhysicsShape } from \"./v2/physicsShape\";\r\nimport type { PhysicsBody } from \"./v2/physicsBody\";\r\n\r\n/**\r\n * Shape cast query\r\n */\r\nexport interface IPhysicsShapeCastQuery {\r\n /**\r\n * The shape to query with\r\n */\r\n shape: PhysicsShape;\r\n /**\r\n * The rotation of the shape\r\n */\r\n rotation: Quaternion;\r\n /**\r\n * The start position of the query\r\n */\r\n startPosition: Vector3;\r\n /**\r\n * The end position of the query\r\n */\r\n endPosition: Vector3;\r\n /**\r\n * Should trigger collisions be considered in the query?\r\n */\r\n shouldHitTriggers: boolean;\r\n /**\r\n * Ignores the body passed if it is in the query\r\n */\r\n ignoreBody?: PhysicsBody;\r\n}\r\n"]}
@@ -0,0 +1,32 @@
1
+ import type { Quaternion, Vector3 } from "../Maths/math.vector";
2
+ import type { PhysicsShape } from "./v2/physicsShape";
3
+ import type { PhysicsBody } from "./v2/physicsBody";
4
+ /**
5
+ * Query for shape proximity.
6
+ */
7
+ export interface IPhysicsShapeProximityCastQuery {
8
+ /**
9
+ * The shape to test proximity against
10
+ */
11
+ shape: PhysicsShape;
12
+ /**
13
+ * The position of shape
14
+ */
15
+ position: Vector3;
16
+ /**
17
+ * The rotation of shape
18
+ */
19
+ rotation: Quaternion;
20
+ /**
21
+ * Maximum distance to check for collisions. Can be set to 0 to check for overlaps.
22
+ */
23
+ maxDistance: number;
24
+ /**
25
+ * Should trigger collisions be considered in the query?
26
+ */
27
+ shouldHitTriggers: boolean;
28
+ /**
29
+ * Ignores the body passed if it is in the query
30
+ */
31
+ ignoreBody?: PhysicsBody;
32
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=physicsShapeProximityCastQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"physicsShapeProximityCastQuery.js","sourceRoot":"","sources":["../../../../dev/core/src/Physics/physicsShapeProximityCastQuery.ts"],"names":[],"mappings":"","sourcesContent":["import type { Quaternion, Vector3 } from \"../Maths/math.vector\";\r\nimport type { PhysicsShape } from \"./v2/physicsShape\";\r\nimport type { PhysicsBody } from \"./v2/physicsBody\";\r\n\r\n/**\r\n * Query for shape proximity.\r\n */\r\nexport interface IPhysicsShapeProximityCastQuery {\r\n /**\r\n * The shape to test proximity against\r\n */\r\n shape: PhysicsShape;\r\n /**\r\n * The position of shape\r\n */\r\n position: Vector3;\r\n /**\r\n * The rotation of shape\r\n */\r\n rotation: Quaternion;\r\n /**\r\n * Maximum distance to check for collisions. Can be set to 0 to check for overlaps.\r\n */\r\n maxDistance: number;\r\n /**\r\n * Should trigger collisions be considered in the query?\r\n */\r\n shouldHitTriggers: boolean;\r\n /**\r\n * Ignores the body passed if it is in the query\r\n */\r\n ignoreBody?: PhysicsBody;\r\n}\r\n"]}
@@ -0,0 +1,20 @@
1
+ import { CastingResult } from "./castingResult";
2
+ /**
3
+ * Class representing a contact point produced in a proximity cast
4
+ */
5
+ export declare class ProximityCastResult extends CastingResult {
6
+ protected _hitDistance: number;
7
+ /**
8
+ * Gets the distance from the hit
9
+ */
10
+ get hitDistance(): number;
11
+ /**
12
+ * Sets the distance from the start point to the hit point
13
+ * @param distance
14
+ */
15
+ setHitDistance(distance: number): void;
16
+ /**
17
+ * Resets all the values to default
18
+ */
19
+ reset(): void;
20
+ }
@@ -0,0 +1,31 @@
1
+ import { CastingResult } from "./castingResult.js";
2
+ /**
3
+ * Class representing a contact point produced in a proximity cast
4
+ */
5
+ export class ProximityCastResult extends CastingResult {
6
+ constructor() {
7
+ super(...arguments);
8
+ this._hitDistance = 0;
9
+ }
10
+ /**
11
+ * Gets the distance from the hit
12
+ */
13
+ get hitDistance() {
14
+ return this._hitDistance;
15
+ }
16
+ /**
17
+ * Sets the distance from the start point to the hit point
18
+ * @param distance
19
+ */
20
+ setHitDistance(distance) {
21
+ this._hitDistance = distance;
22
+ }
23
+ /**
24
+ * Resets all the values to default
25
+ */
26
+ reset() {
27
+ super.reset();
28
+ this._hitDistance = 0;
29
+ }
30
+ }
31
+ //# sourceMappingURL=proximityCastResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proximityCastResult.js","sourceRoot":"","sources":["../../../../dev/core/src/Physics/proximityCastResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,aAAa;IAAtD;;QACc,iBAAY,GAAW,CAAC,CAAC;IAwBvC,CAAC;IAtBG;;OAEG;IACH,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,cAAc,CAAC,QAAgB;QAClC,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC;IACjC,CAAC;IAED;;OAEG;IACI,KAAK;QACR,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;IAC1B,CAAC;CACJ","sourcesContent":["import { CastingResult } from \"./castingResult\";\r\n\r\n/**\r\n * Class representing a contact point produced in a proximity cast\r\n */\r\nexport class ProximityCastResult extends CastingResult {\r\n protected _hitDistance: number = 0;\r\n\r\n /**\r\n * Gets the distance from the hit\r\n */\r\n get hitDistance(): number {\r\n return this._hitDistance;\r\n }\r\n\r\n /**\r\n * Sets the distance from the start point to the hit point\r\n * @param distance\r\n */\r\n public setHitDistance(distance: number) {\r\n this._hitDistance = distance;\r\n }\r\n\r\n /**\r\n * Resets all the values to default\r\n */\r\n public reset() {\r\n super.reset();\r\n this._hitDistance = 0;\r\n }\r\n}\r\n"]}
@@ -0,0 +1,16 @@
1
+ import { CastingResult } from "./castingResult";
2
+ /**
3
+ * Class representing a contact point produced in a shape cast
4
+ */
5
+ export declare class ShapeCastResult extends CastingResult {
6
+ private _hitFraction;
7
+ /**
8
+ * Gets the hit fraction along the casting ray
9
+ */
10
+ get hitFraction(): number;
11
+ /**
12
+ * Sets the hit fraction along the casting ray
13
+ * @param fraction
14
+ */
15
+ setHitFraction(fraction: number): void;
16
+ }
@@ -0,0 +1,24 @@
1
+ import { CastingResult } from "./castingResult.js";
2
+ /**
3
+ * Class representing a contact point produced in a shape cast
4
+ */
5
+ export class ShapeCastResult extends CastingResult {
6
+ constructor() {
7
+ super(...arguments);
8
+ this._hitFraction = 0;
9
+ }
10
+ /**
11
+ * Gets the hit fraction along the casting ray
12
+ */
13
+ get hitFraction() {
14
+ return this._hitFraction;
15
+ }
16
+ /**
17
+ * Sets the hit fraction along the casting ray
18
+ * @param fraction
19
+ */
20
+ setHitFraction(fraction) {
21
+ this._hitFraction = fraction;
22
+ }
23
+ }
24
+ //# sourceMappingURL=shapeCastResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shapeCastResult.js","sourceRoot":"","sources":["../../../../dev/core/src/Physics/shapeCastResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,aAAa;IAAlD;;QACY,iBAAY,GAAW,CAAC,CAAC;IAgBrC,CAAC;IAdG;;OAEG;IACH,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,cAAc,CAAC,QAAgB;QAClC,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC;IACjC,CAAC;CACJ","sourcesContent":["import { CastingResult } from \"./castingResult\";\r\n\r\n/**\r\n * Class representing a contact point produced in a shape cast\r\n */\r\nexport class ShapeCastResult extends CastingResult {\r\n private _hitFraction: number = 0;\r\n\r\n /**\r\n * Gets the hit fraction along the casting ray\r\n */\r\n get hitFraction(): number {\r\n return this._hitFraction;\r\n }\r\n\r\n /**\r\n * Sets the hit fraction along the casting ray\r\n * @param fraction\r\n */\r\n public setHitFraction(fraction: number) {\r\n this._hitFraction = fraction;\r\n }\r\n}\r\n"]}
@@ -168,26 +168,31 @@ export declare class AmmoJSPlugin implements IPhysicsEnginePlugin {
168
168
  * Softbody vertices (nodes) are in world space and to match this
169
169
  * The object's position and rotation is set to zero and so its vertices are also then set in world space
170
170
  * @param impostor to create the softbody for
171
+ * @returns the number of vertices added to the softbody
171
172
  */
172
173
  private _softVertexData;
173
174
  /**
174
175
  * Create an impostor's soft body
175
176
  * @param impostor to create the softbody for
177
+ * @returns the softbody
176
178
  */
177
179
  private _createSoftbody;
178
180
  /**
179
181
  * Create cloth for an impostor
180
182
  * @param impostor to create the softbody for
183
+ * @returns the cloth
181
184
  */
182
185
  private _createCloth;
183
186
  /**
184
187
  * Create rope for an impostor
185
188
  * @param impostor to create the softbody for
189
+ * @returns the rope
186
190
  */
187
191
  private _createRope;
188
192
  /**
189
193
  * Create a custom physics impostor shape using the plugin's onCreateCustomShape handler
190
194
  * @param impostor to create the custom physics shape for
195
+ * @returns the custom physics shape
191
196
  */
192
197
  private _createCustom;
193
198
  private _addHullVerts;
@@ -588,6 +588,7 @@ export class AmmoJSPlugin {
588
588
  * Softbody vertices (nodes) are in world space and to match this
589
589
  * The object's position and rotation is set to zero and so its vertices are also then set in world space
590
590
  * @param impostor to create the softbody for
591
+ * @returns the number of vertices added to the softbody
591
592
  */
592
593
  _softVertexData(impostor) {
593
594
  const object = impostor.object;
@@ -635,6 +636,7 @@ export class AmmoJSPlugin {
635
636
  /**
636
637
  * Create an impostor's soft body
637
638
  * @param impostor to create the softbody for
639
+ * @returns the softbody
638
640
  */
639
641
  _createSoftbody(impostor) {
640
642
  const object = impostor.object;
@@ -677,6 +679,7 @@ export class AmmoJSPlugin {
677
679
  /**
678
680
  * Create cloth for an impostor
679
681
  * @param impostor to create the softbody for
682
+ * @returns the cloth
680
683
  */
681
684
  _createCloth(impostor) {
682
685
  const object = impostor.object;
@@ -708,6 +711,7 @@ export class AmmoJSPlugin {
708
711
  /**
709
712
  * Create rope for an impostor
710
713
  * @param impostor to create the softbody for
714
+ * @returns the rope
711
715
  */
712
716
  _createRope(impostor) {
713
717
  let len;
@@ -756,6 +760,7 @@ export class AmmoJSPlugin {
756
760
  /**
757
761
  * Create a custom physics impostor shape using the plugin's onCreateCustomShape handler
758
762
  * @param impostor to create the custom physics shape for
763
+ * @returns the custom physics shape
759
764
  */
760
765
  _createCustom(impostor) {
761
766
  let returnValue = null;
@@ -825,6 +830,7 @@ export class AmmoJSPlugin {
825
830
  const childImpostor = childMesh.getPhysicsImpostor();
826
831
  if (childImpostor) {
827
832
  if (childImpostor.type == PhysicsImpostor.MeshImpostor) {
833
+ // eslint-disable-next-line no-throw-literal
828
834
  throw "A child MeshImpostor is not supported. Only primitive impostors are supported as children (eg. box or sphere)";
829
835
  }
830
836
  const shape = this._createShape(childImpostor);