@babylonjs/core 6.39.0 → 6.40.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 (609) 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 +1 -1
  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 +1 -0
  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 -2
  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 +2 -2
  276. package/Materials/Background/backgroundMaterial.js.map +1 -1
  277. package/Materials/GaussianSplatting/gaussianSplattingMaterial.d.ts +72 -0
  278. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +230 -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 +14 -3
  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 +7 -6
  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/index.d.ts +1 -0
  348. package/Materials/index.js +1 -0
  349. package/Materials/index.js.map +1 -1
  350. package/Materials/material.d.ts +1 -0
  351. package/Materials/material.decalMapConfiguration.d.ts +0 -5
  352. package/Materials/material.decalMapConfiguration.js +5 -5
  353. package/Materials/material.decalMapConfiguration.js.map +1 -1
  354. package/Materials/material.js +1 -0
  355. package/Materials/material.js.map +1 -1
  356. package/Materials/materialHelper.d.ts +1 -1
  357. package/Materials/materialHelper.js +4 -3
  358. package/Materials/materialHelper.js.map +1 -1
  359. package/Materials/materialPluginManager.js +1 -0
  360. package/Materials/materialPluginManager.js.map +1 -1
  361. package/Materials/standardMaterial.d.ts +2 -2
  362. package/Materials/standardMaterial.js +2 -2
  363. package/Materials/standardMaterial.js.map +1 -1
  364. package/Materials/uniformBuffer.js +2 -1
  365. package/Materials/uniformBuffer.js.map +1 -1
  366. package/Maths/math.path.d.ts +2 -1
  367. package/Maths/math.path.js +2 -1
  368. package/Maths/math.path.js.map +1 -1
  369. package/Maths/math.vector.d.ts +11 -4
  370. package/Maths/math.vector.js +11 -4
  371. package/Maths/math.vector.js.map +1 -1
  372. package/Meshes/Builders/hemisphereBuilder.js +1 -0
  373. package/Meshes/Builders/hemisphereBuilder.js.map +1 -1
  374. package/Meshes/Builders/textBuilder.d.ts +26 -5
  375. package/Meshes/Builders/textBuilder.js +26 -5
  376. package/Meshes/Builders/textBuilder.js.map +1 -1
  377. package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +84 -0
  378. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +288 -0
  379. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -0
  380. package/Meshes/GreasedLine/greasedLineRibbonMesh.js +7 -0
  381. package/Meshes/GreasedLine/greasedLineRibbonMesh.js.map +1 -1
  382. package/Meshes/Node/Blocks/geometryCurveBlock.d.ts +92 -0
  383. package/Meshes/Node/Blocks/geometryCurveBlock.js +292 -0
  384. package/Meshes/Node/Blocks/geometryCurveBlock.js.map +1 -0
  385. package/Meshes/Node/Blocks/noiseBlock.d.ts +5 -3
  386. package/Meshes/Node/Blocks/noiseBlock.js +5 -3
  387. package/Meshes/Node/Blocks/noiseBlock.js.map +1 -1
  388. package/Meshes/Node/index.d.ts +1 -0
  389. package/Meshes/Node/index.js +1 -0
  390. package/Meshes/Node/index.js.map +1 -1
  391. package/Meshes/Node/nodeGeometry.d.ts +6 -2
  392. package/Meshes/Node/nodeGeometry.js +7 -2
  393. package/Meshes/Node/nodeGeometry.js.map +1 -1
  394. package/Meshes/Node/nodeGeometryBlockConnectionPoint.js +1 -0
  395. package/Meshes/Node/nodeGeometryBlockConnectionPoint.js.map +1 -1
  396. package/Meshes/Node/nodeGeometryBuildState.js +1 -0
  397. package/Meshes/Node/nodeGeometryBuildState.js.map +1 -1
  398. package/Meshes/abstractMesh.d.ts +1 -0
  399. package/Meshes/abstractMesh.js +3 -0
  400. package/Meshes/abstractMesh.js.map +1 -1
  401. package/Meshes/csg.d.ts +7 -1
  402. package/Meshes/csg.js +9 -1
  403. package/Meshes/csg.js.map +1 -1
  404. package/Meshes/index.d.ts +1 -0
  405. package/Meshes/index.js +1 -0
  406. package/Meshes/index.js.map +1 -1
  407. package/Meshes/instancedMesh.d.ts +7 -3
  408. package/Meshes/instancedMesh.js +7 -3
  409. package/Meshes/instancedMesh.js.map +1 -1
  410. package/Meshes/linesMesh.d.ts +3 -2
  411. package/Meshes/linesMesh.js +3 -2
  412. package/Meshes/linesMesh.js.map +1 -1
  413. package/Meshes/mesh.d.ts +1 -0
  414. package/Meshes/mesh.js +1 -0
  415. package/Meshes/mesh.js.map +1 -1
  416. package/Meshes/mesh.vertexData.d.ts +0 -145
  417. package/Meshes/mesh.vertexData.js +0 -145
  418. package/Meshes/mesh.vertexData.js.map +1 -1
  419. package/Meshes/transformNode.d.ts +1 -1
  420. package/Meshes/transformNode.js +1 -1
  421. package/Meshes/transformNode.js.map +1 -1
  422. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.d.ts +1 -0
  423. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js +1 -0
  424. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js.map +1 -1
  425. package/Misc/HighDynamicRange/hdr.js +7 -0
  426. package/Misc/HighDynamicRange/hdr.js.map +1 -1
  427. package/Misc/HighDynamicRange/panoramaToCubemap.js +2 -0
  428. package/Misc/HighDynamicRange/panoramaToCubemap.js.map +1 -1
  429. package/Misc/assetsManager.d.ts +3 -0
  430. package/Misc/assetsManager.js +3 -0
  431. package/Misc/assetsManager.js.map +1 -1
  432. package/Misc/basis.js +1 -0
  433. package/Misc/basis.js.map +1 -1
  434. package/Misc/decorators.d.ts +1 -0
  435. package/Misc/decorators.js +2 -1
  436. package/Misc/decorators.js.map +1 -1
  437. package/Misc/fileTools.js +2 -0
  438. package/Misc/fileTools.js.map +1 -1
  439. package/Misc/filesInput.d.ts +7 -2
  440. package/Misc/filesInput.js +7 -2
  441. package/Misc/filesInput.js.map +1 -1
  442. package/Misc/greasedLineTools.d.ts +1 -0
  443. package/Misc/greasedLineTools.js +1 -0
  444. package/Misc/greasedLineTools.js.map +1 -1
  445. package/Misc/textureTools.d.ts +2 -0
  446. package/Misc/textureTools.js +2 -0
  447. package/Misc/textureTools.js.map +1 -1
  448. package/Misc/timer.d.ts +2 -1
  449. package/Misc/timer.js +1 -0
  450. package/Misc/timer.js.map +1 -1
  451. package/Misc/tools.d.ts +2 -2
  452. package/Misc/tools.js +6 -2
  453. package/Misc/tools.js.map +1 -1
  454. package/Misc/videoRecorder.js +4 -0
  455. package/Misc/videoRecorder.js.map +1 -1
  456. package/Misc/webRequest.js +1 -1
  457. package/Misc/webRequest.js.map +1 -1
  458. package/Morph/morphTargetManager.d.ts +11 -0
  459. package/Morph/morphTargetManager.js +22 -2
  460. package/Morph/morphTargetManager.js.map +1 -1
  461. package/Particles/EmitterTypes/customParticleEmitter.js +10 -2
  462. package/Particles/EmitterTypes/customParticleEmitter.js.map +1 -1
  463. package/Particles/EmitterTypes/cylinderParticleEmitter.d.ts +3 -1
  464. package/Particles/EmitterTypes/cylinderParticleEmitter.js +7 -1
  465. package/Particles/EmitterTypes/cylinderParticleEmitter.js.map +1 -1
  466. package/Particles/IParticleSystem.d.ts +2 -2
  467. package/Particles/IParticleSystem.js.map +1 -1
  468. package/Particles/gpuParticleSystem.js +1 -0
  469. package/Particles/gpuParticleSystem.js.map +1 -1
  470. package/Particles/particleSystem.d.ts +1 -2
  471. package/Particles/particleSystem.js +5 -1
  472. package/Particles/particleSystem.js.map +1 -1
  473. package/Particles/solidParticleSystem.d.ts +1 -1
  474. package/Particles/solidParticleSystem.js +1 -1
  475. package/Particles/solidParticleSystem.js.map +1 -1
  476. package/Physics/physicsHelper.d.ts +1 -0
  477. package/Physics/physicsHelper.js +1 -0
  478. package/Physics/physicsHelper.js.map +1 -1
  479. package/Physics/v1/Plugins/ammoJSPlugin.d.ts +5 -0
  480. package/Physics/v1/Plugins/ammoJSPlugin.js +6 -0
  481. package/Physics/v1/Plugins/ammoJSPlugin.js.map +1 -1
  482. package/Physics/v1/physicsEngine.d.ts +2 -0
  483. package/Physics/v1/physicsEngine.js +2 -0
  484. package/Physics/v1/physicsEngine.js.map +1 -1
  485. package/Physics/v1/physicsImpostor.d.ts +0 -1
  486. package/Physics/v1/physicsImpostor.js +0 -1
  487. package/Physics/v1/physicsImpostor.js.map +1 -1
  488. package/Physics/v2/IPhysicsEnginePlugin.d.ts +1 -0
  489. package/Physics/v2/IPhysicsEnginePlugin.js.map +1 -1
  490. package/Physics/v2/Plugins/havokPlugin.d.ts +12 -6
  491. package/Physics/v2/Plugins/havokPlugin.js +38 -6
  492. package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
  493. package/Physics/v2/physicsBody.d.ts +8 -0
  494. package/Physics/v2/physicsBody.js +18 -4
  495. package/Physics/v2/physicsBody.js.map +1 -1
  496. package/Physics/v2/physicsConstraint.d.ts +0 -2
  497. package/Physics/v2/physicsConstraint.js +0 -2
  498. package/Physics/v2/physicsConstraint.js.map +1 -1
  499. package/Physics/v2/physicsEngine.d.ts +1 -2
  500. package/Physics/v2/physicsEngine.js +2 -2
  501. package/Physics/v2/physicsEngine.js.map +1 -1
  502. package/Physics/v2/physicsShape.d.ts +2 -0
  503. package/Physics/v2/physicsShape.js +5 -0
  504. package/Physics/v2/physicsShape.js.map +1 -1
  505. package/PostProcesses/motionBlurPostProcess.d.ts +1 -0
  506. package/PostProcesses/motionBlurPostProcess.js +1 -0
  507. package/PostProcesses/motionBlurPostProcess.js.map +1 -1
  508. package/PostProcesses/postProcess.d.ts +0 -1
  509. package/PostProcesses/postProcess.js +0 -1
  510. package/PostProcesses/postProcess.js.map +1 -1
  511. package/Rendering/depthRendererSceneComponent.js +1 -0
  512. package/Rendering/depthRendererSceneComponent.js.map +1 -1
  513. package/Rendering/fluidRenderer/fluidRenderingObject.d.ts +1 -1
  514. package/Rendering/fluidRenderer/fluidRenderingObject.js +1 -1
  515. package/Rendering/fluidRenderer/fluidRenderingObject.js.map +1 -1
  516. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.d.ts +1 -1
  517. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.js +1 -1
  518. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.js.map +1 -1
  519. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.d.ts +1 -1
  520. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.js +1 -1
  521. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.js.map +1 -1
  522. package/Rendering/geometryBufferRenderer.d.ts +2 -2
  523. package/Rendering/geometryBufferRenderer.js +2 -2
  524. package/Rendering/geometryBufferRenderer.js.map +1 -1
  525. package/Rendering/index.d.ts +0 -1
  526. package/Rendering/index.js +0 -1
  527. package/Rendering/index.js.map +1 -1
  528. package/Rendering/renderingGroup.d.ts +0 -1
  529. package/Rendering/renderingGroup.js +3 -4
  530. package/Rendering/renderingGroup.js.map +1 -1
  531. package/Rendering/renderingManager.d.ts +1 -1
  532. package/Rendering/renderingManager.js +1 -1
  533. package/Rendering/renderingManager.js.map +1 -1
  534. package/Rendering/subSurfaceConfiguration.d.ts +1 -0
  535. package/Rendering/subSurfaceConfiguration.js +1 -0
  536. package/Rendering/subSurfaceConfiguration.js.map +1 -1
  537. package/Shaders/ShadersInclude/gaussianSplattingUboDeclaration.d.ts +7 -0
  538. package/Shaders/ShadersInclude/gaussianSplattingUboDeclaration.js +13 -0
  539. package/Shaders/ShadersInclude/gaussianSplattingUboDeclaration.js.map +1 -0
  540. package/Shaders/ShadersInclude/gaussianSplattingVertexDeclaration.d.ts +5 -0
  541. package/Shaders/ShadersInclude/gaussianSplattingVertexDeclaration.js +10 -0
  542. package/Shaders/ShadersInclude/gaussianSplattingVertexDeclaration.js.map +1 -0
  543. package/Shaders/ShadersInclude/morphTargetsVertex.js +8 -5
  544. package/Shaders/ShadersInclude/morphTargetsVertex.js.map +1 -1
  545. package/Shaders/ShadersInclude/morphTargetsVertexDeclaration.js +2 -0
  546. package/Shaders/ShadersInclude/morphTargetsVertexDeclaration.js.map +1 -1
  547. package/Shaders/gaussianSplatting.fragment.d.ts +11 -0
  548. package/Shaders/gaussianSplatting.fragment.js +27 -0
  549. package/Shaders/gaussianSplatting.fragment.js.map +1 -0
  550. package/Shaders/gaussianSplatting.vertex.d.ts +13 -0
  551. package/Shaders/gaussianSplatting.vertex.js +49 -0
  552. package/Shaders/gaussianSplatting.vertex.js.map +1 -0
  553. package/ShadersWGSL/ShadersInclude/morphTargetsVertex.js +5 -1
  554. package/ShadersWGSL/ShadersInclude/morphTargetsVertex.js.map +1 -1
  555. package/ShadersWGSL/ShadersInclude/morphTargetsVertexDeclaration.js +2 -0
  556. package/ShadersWGSL/ShadersInclude/morphTargetsVertexDeclaration.js.map +1 -1
  557. package/XR/features/WebXRAbstractFeature.d.ts +3 -1
  558. package/XR/features/WebXRAbstractFeature.js +20 -4
  559. package/XR/features/WebXRAbstractFeature.js.map +1 -1
  560. package/XR/features/WebXRAnchorSystem.d.ts +1 -0
  561. package/XR/features/WebXRAnchorSystem.js +1 -0
  562. package/XR/features/WebXRAnchorSystem.js.map +1 -1
  563. package/XR/features/WebXRControllerTeleportation.js +9 -2
  564. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  565. package/XR/features/WebXREyeTracking.js +1 -1
  566. package/XR/features/WebXREyeTracking.js.map +1 -1
  567. package/XR/features/WebXRHandTracking.d.ts +4 -1
  568. package/XR/features/WebXRHandTracking.js +18 -4
  569. package/XR/features/WebXRHandTracking.js.map +1 -1
  570. package/XR/features/WebXRHitTest.js +1 -1
  571. package/XR/features/WebXRHitTest.js.map +1 -1
  572. package/XR/features/WebXRNearInteraction.d.ts +6 -3
  573. package/XR/features/WebXRNearInteraction.js +9 -4
  574. package/XR/features/WebXRNearInteraction.js.map +1 -1
  575. package/XR/features/WebXRPlaneDetector.d.ts +2 -0
  576. package/XR/features/WebXRPlaneDetector.js +2 -0
  577. package/XR/features/WebXRPlaneDetector.js.map +1 -1
  578. package/XR/features/WebXRRawCameraAccess.d.ts +2 -0
  579. package/XR/features/WebXRRawCameraAccess.js +2 -0
  580. package/XR/features/WebXRRawCameraAccess.js.map +1 -1
  581. package/XR/motionController/webXROculusTouchMotionController.d.ts +1 -0
  582. package/XR/motionController/webXROculusTouchMotionController.js +1 -0
  583. package/XR/motionController/webXROculusTouchMotionController.js.map +1 -1
  584. package/XR/webXRCamera.d.ts +2 -0
  585. package/XR/webXRCamera.js +8 -6
  586. package/XR/webXRCamera.js.map +1 -1
  587. package/XR/webXRExperienceHelper.js +1 -0
  588. package/XR/webXRExperienceHelper.js.map +1 -1
  589. package/XR/webXRInput.js +1 -1
  590. package/XR/webXRInput.js.map +1 -1
  591. package/XR/webXRInputSource.d.ts +3 -1
  592. package/XR/webXRInputSource.js +6 -3
  593. package/XR/webXRInputSource.js.map +1 -1
  594. package/XR/webXRSessionManager.d.ts +13 -0
  595. package/XR/webXRSessionManager.js +21 -1
  596. package/XR/webXRSessionManager.js.map +1 -1
  597. package/assetContainer.d.ts +4 -1
  598. package/assetContainer.js +4 -1
  599. package/assetContainer.js.map +1 -1
  600. package/package.json +1 -1
  601. package/scene.d.ts +1 -0
  602. package/scene.js +11 -0
  603. package/scene.js.map +1 -1
  604. package/Rendering/GaussianSplatting/gaussianSplatting.d.ts +0 -81
  605. package/Rendering/GaussianSplatting/gaussianSplatting.js +0 -400
  606. package/Rendering/GaussianSplatting/gaussianSplatting.js.map +0 -1
  607. package/Rendering/GaussianSplatting/index.d.ts +0 -1
  608. package/Rendering/GaussianSplatting/index.js +0 -2
  609. package/Rendering/GaussianSplatting/index.js.map +0 -1
@@ -90,7 +90,6 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
90
90
  *
91
91
  * @param delta The time delta in seconds since the last step.
92
92
  * @param physicsBodies An array of physics bodies to be simulated.
93
- * @returns void
94
93
  *
95
94
  * This method is useful for simulating the physics engine. It sets the physics body transformation,
96
95
  * steps the world, syncs the physics body, and notifies collisions. This allows for the physics engine
@@ -233,6 +232,7 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
233
232
  * Gets the motion type of a physics body.
234
233
  * @param body - The physics body to get the motion type from.
235
234
  * @param instanceIndex - The index of the instance to get the motion type from. If not specified, the motion type of the first instance will be returned.
235
+ * @returns The motion type of the physics body.
236
236
  */
237
237
  getMotionType(body: PhysicsBody, instanceIndex?: number): PhysicsMotionType;
238
238
  private _internalComputeMassProperties;
@@ -241,6 +241,7 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
241
241
  *
242
242
  * @param body - The physics body to copmute the mass properties of
243
243
  * @param instanceIndex - The index of the instance to compute the mass properties of.
244
+ * @returns The mass properties of the physics body.
244
245
  */
245
246
  computeMassProperties(body: PhysicsBody, instanceIndex?: number): PhysicsMassProperties;
246
247
  /**
@@ -458,6 +459,12 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
458
459
  *
459
460
  */
460
461
  setMaterial(shape: PhysicsShape, material: PhysicsMaterial): void;
462
+ /**
463
+ * Gets the material associated with a physics shape.
464
+ * @param shape - The shape to get the material from.
465
+ * @returns The material associated with the shape.
466
+ */
467
+ getMaterial(shape: PhysicsShape): PhysicsMaterial;
461
468
  /**
462
469
  * Sets the density of a physics shape.
463
470
  * @param shape - The physics shape to set the density of.
@@ -475,11 +482,11 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
475
482
  getDensity(shape: PhysicsShape): number;
476
483
  /**
477
484
  * Gets the transform infos of a given transform node.
478
- * @param node - The transform node.
479
- * @returns An array containing the position and orientation of the node.
480
485
  * This code is useful for getting the position and orientation of a given transform node.
481
486
  * It first checks if the node has a rotation quaternion, and if not, it creates one from the node's rotation.
482
487
  * It then creates an array containing the position and orientation of the node and returns it.
488
+ * @param node - The transform node.
489
+ * @returns An array containing the position and orientation of the node.
483
490
  */
484
491
  private _getTransformInfos;
485
492
  /**
@@ -542,7 +549,6 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
542
549
  * Releases a physics shape from the physics engine.
543
550
  *
544
551
  * @param shape - The physics shape to be released.
545
- * @returns void
546
552
  *
547
553
  * This method is useful for releasing a physics shape from the physics engine, freeing up resources and preventing memory leaks.
548
554
  */
@@ -609,7 +615,6 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
609
615
  * @param constraint - The constraint to set the friction of.
610
616
  * @param axis - The axis of the constraint to set the friction of.
611
617
  * @param friction - The friction to set.
612
- * @returns void
613
618
  *
614
619
  */
615
620
  setAxisFriction(constraint: PhysicsConstraint, axis: PhysicsConstraintAxis, friction: number): void;
@@ -676,7 +681,6 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
676
681
  * @param constraint - The constraint to set the motor type of.
677
682
  * @param axis - The axis of the constraint to set the motor type of.
678
683
  * @param motorType - The motor type to set.
679
- * @returns void
680
684
  *
681
685
  */
682
686
  setAxisMotorType(constraint: PhysicsConstraint, axis: PhysicsConstraintAxis, motorType: PhysicsConstraintMotorType): void;
@@ -747,6 +751,7 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
747
751
  /**
748
752
  * Return the collision observable for a particular physics body.
749
753
  * @param body the physics body
754
+ * @returns the collision observable for the body
750
755
  */
751
756
  getCollisionObservable(body: PhysicsBody): Observable<IPhysicsCollisionEvent>;
752
757
  /**
@@ -786,6 +791,7 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
786
791
  private _constraintMotorTypeToNative;
787
792
  private _nativeToMotorType;
788
793
  private _materialCombineToNative;
794
+ private _nativeToMaterialCombine;
789
795
  private _constraintAxisToNative;
790
796
  private _nativeToLimitMode;
791
797
  private _limitModeToNative;
@@ -103,6 +103,7 @@ class MeshAccumulator {
103
103
  /**
104
104
  * Allocate and populate the vertex positions inside the physics plugin.
105
105
  *
106
+ * @param plugin - The plugin to allocate the memory in.
106
107
  * @returns An array of floats, whose backing memory is inside the plugin. The array contains the
107
108
  * positions of the mesh vertices, where a position is defined by three floats. You must call
108
109
  * freeBuffer() on the returned array once you have finished with it, in order to free the
@@ -127,6 +128,7 @@ class MeshAccumulator {
127
128
  /**
128
129
  * Allocate and populate the triangle indices inside the physics plugin
129
130
  *
131
+ * @param plugin - The plugin to allocate the memory in.
130
132
  * @returns A new Int32Array, whose backing memory is inside the plugin. The array contains the indices
131
133
  * of the triangle positions, where a single triangle is defined by three indices. You must call
132
134
  * freeBuffer() on this array once you have finished with it, to free the memory inside the plugin..
@@ -289,7 +291,6 @@ export class HavokPlugin {
289
291
  *
290
292
  * @param delta The time delta in seconds since the last step.
291
293
  * @param physicsBodies An array of physics bodies to be simulated.
292
- * @returns void
293
294
  *
294
295
  * This method is useful for simulating the physics engine. It sets the physics body transformation,
295
296
  * steps the world, syncs the physics body, and notifies collisions. This allows for the physics engine
@@ -682,6 +683,7 @@ export class HavokPlugin {
682
683
  * Gets the motion type of a physics body.
683
684
  * @param body - The physics body to get the motion type from.
684
685
  * @param instanceIndex - The index of the instance to get the motion type from. If not specified, the motion type of the first instance will be returned.
686
+ * @returns The motion type of the physics body.
685
687
  */
686
688
  getMotionType(body, instanceIndex) {
687
689
  const pluginRef = this._getPluginReference(body, instanceIndex);
@@ -712,6 +714,7 @@ export class HavokPlugin {
712
714
  *
713
715
  * @param body - The physics body to copmute the mass properties of
714
716
  * @param instanceIndex - The index of the instance to compute the mass properties of.
717
+ * @returns The mass properties of the physics body.
715
718
  */
716
719
  computeMassProperties(body, instanceIndex) {
717
720
  const pluginRef = this._getPluginReference(body, instanceIndex);
@@ -1118,6 +1121,21 @@ export class HavokPlugin {
1118
1121
  const hpMaterial = [staticFriction, dynamicFriction, restitution, this._materialCombineToNative(frictionCombine), this._materialCombineToNative(restitutionCombine)];
1119
1122
  this._hknp.HP_Shape_SetMaterial(shape._pluginData, hpMaterial);
1120
1123
  }
1124
+ /**
1125
+ * Gets the material associated with a physics shape.
1126
+ * @param shape - The shape to get the material from.
1127
+ * @returns The material associated with the shape.
1128
+ */
1129
+ getMaterial(shape) {
1130
+ const hkMaterial = this._hknp.HP_Shape_GetMaterial(shape._pluginData)[1];
1131
+ return {
1132
+ staticFriction: hkMaterial[0],
1133
+ friction: hkMaterial[1],
1134
+ restitution: hkMaterial[2],
1135
+ frictionCombine: this._nativeToMaterialCombine(hkMaterial[3]),
1136
+ restitutionCombine: this._nativeToMaterialCombine(hkMaterial[4]),
1137
+ };
1138
+ }
1121
1139
  /**
1122
1140
  * Sets the density of a physics shape.
1123
1141
  * @param shape - The physics shape to set the density of.
@@ -1139,11 +1157,11 @@ export class HavokPlugin {
1139
1157
  }
1140
1158
  /**
1141
1159
  * Gets the transform infos of a given transform node.
1142
- * @param node - The transform node.
1143
- * @returns An array containing the position and orientation of the node.
1144
1160
  * This code is useful for getting the position and orientation of a given transform node.
1145
1161
  * It first checks if the node has a rotation quaternion, and if not, it creates one from the node's rotation.
1146
1162
  * It then creates an array containing the position and orientation of the node and returns it.
1163
+ * @param node - The transform node.
1164
+ * @returns An array containing the position and orientation of the node.
1147
1165
  */
1148
1166
  _getTransformInfos(node) {
1149
1167
  if (node.parent) {
@@ -1247,7 +1265,6 @@ export class HavokPlugin {
1247
1265
  * Releases a physics shape from the physics engine.
1248
1266
  *
1249
1267
  * @param shape - The physics shape to be released.
1250
- * @returns void
1251
1268
  *
1252
1269
  * This method is useful for releasing a physics shape from the physics engine, freeing up resources and preventing memory leaks.
1253
1270
  */
@@ -1479,7 +1496,6 @@ export class HavokPlugin {
1479
1496
  * @param constraint - The constraint to set the friction of.
1480
1497
  * @param axis - The axis of the constraint to set the friction of.
1481
1498
  * @param friction - The friction to set.
1482
- * @returns void
1483
1499
  *
1484
1500
  */
1485
1501
  setAxisFriction(constraint, axis, friction) {
@@ -1587,7 +1603,6 @@ export class HavokPlugin {
1587
1603
  * @param constraint - The constraint to set the motor type of.
1588
1604
  * @param axis - The axis of the constraint to set the motor type of.
1589
1605
  * @param motorType - The motor type to set.
1590
- * @returns void
1591
1606
  *
1592
1607
  */
1593
1608
  setAxisMotorType(constraint, axis, motorType) {
@@ -1714,6 +1729,7 @@ export class HavokPlugin {
1714
1729
  /**
1715
1730
  * Return the collision observable for a particular physics body.
1716
1731
  * @param body the physics body
1732
+ * @returns the collision observable for the body
1717
1733
  */
1718
1734
  getCollisionObservable(body) {
1719
1735
  const bodyId = body._pluginData.hpBodyId[0];
@@ -1924,6 +1940,22 @@ export class HavokPlugin {
1924
1940
  return this._hknp.MaterialCombine.MULTIPLY;
1925
1941
  }
1926
1942
  }
1943
+ _nativeToMaterialCombine(mat) {
1944
+ switch (mat) {
1945
+ case this._hknp.MaterialCombine.GEOMETRIC_MEAN:
1946
+ return PhysicsMaterialCombineMode.GEOMETRIC_MEAN;
1947
+ case this._hknp.MaterialCombine.MINIMUM:
1948
+ return PhysicsMaterialCombineMode.MINIMUM;
1949
+ case this._hknp.MaterialCombine.MAXIMUM:
1950
+ return PhysicsMaterialCombineMode.MAXIMUM;
1951
+ case this._hknp.MaterialCombine.ARITHMETIC_MEAN:
1952
+ return PhysicsMaterialCombineMode.ARITHMETIC_MEAN;
1953
+ case this._hknp.MaterialCombine.MULTIPLY:
1954
+ return PhysicsMaterialCombineMode.MULTIPLY;
1955
+ default:
1956
+ return undefined;
1957
+ }
1958
+ }
1927
1959
  _constraintAxisToNative(axId) {
1928
1960
  switch (axId) {
1929
1961
  case PhysicsConstraintAxis.LINEAR_X: