@babylonjs/core 6.46.1 → 6.48.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 (72) hide show
  1. package/Buffers/buffer.align.d.ts +3 -3
  2. package/Buffers/buffer.align.js +1 -1
  3. package/Buffers/buffer.align.js.map +1 -1
  4. package/Engines/Native/nativeInterfaces.d.ts +1 -0
  5. package/Engines/Native/nativeInterfaces.js.map +1 -1
  6. package/Engines/engine.js +9 -9
  7. package/Engines/engine.js.map +1 -1
  8. package/Engines/engineFeatures.d.ts +2 -2
  9. package/Engines/engineFeatures.js.map +1 -1
  10. package/Engines/nativeEngine.d.ts +1 -0
  11. package/Engines/nativeEngine.js +21 -1
  12. package/Engines/nativeEngine.js.map +1 -1
  13. package/Engines/nullEngine.js +1 -1
  14. package/Engines/nullEngine.js.map +1 -1
  15. package/Engines/thinEngine.d.ts +5 -3
  16. package/Engines/thinEngine.js +53 -43
  17. package/Engines/thinEngine.js.map +1 -1
  18. package/Engines/webgpuEngine.js +1 -1
  19. package/Engines/webgpuEngine.js.map +1 -1
  20. package/Loading/sceneLoader.js +2 -1
  21. package/Loading/sceneLoader.js.map +1 -1
  22. package/Materials/Node/Blocks/posterizeBlock.js +1 -0
  23. package/Materials/Node/Blocks/posterizeBlock.js.map +1 -1
  24. package/Maths/index.d.ts +1 -0
  25. package/Maths/index.js +1 -0
  26. package/Maths/index.js.map +1 -1
  27. package/Maths/math.vector.functions.d.ts +22 -0
  28. package/Maths/math.vector.functions.js +28 -0
  29. package/Maths/math.vector.functions.js.map +1 -0
  30. package/Meshes/Node/Blocks/debugBlock.d.ts +1 -1
  31. package/Meshes/Node/Blocks/debugBlock.js +16 -2
  32. package/Meshes/Node/Blocks/debugBlock.js.map +1 -1
  33. package/Meshes/Node/Blocks/geometryPosterizeBlock.js +26 -1
  34. package/Meshes/Node/Blocks/geometryPosterizeBlock.js.map +1 -1
  35. package/Meshes/mesh.js +12 -0
  36. package/Meshes/mesh.js.map +1 -1
  37. package/Misc/khronosTextureContainer2Worker.js +1 -1
  38. package/Misc/khronosTextureContainer2Worker.js.map +1 -1
  39. package/NOTICE.md +10 -0
  40. package/Particles/IParticleSystem.d.ts +3 -1
  41. package/Particles/IParticleSystem.js.map +1 -1
  42. package/Particles/particleSystem.d.ts +1 -1
  43. package/Particles/particleSystem.js +17 -1
  44. package/Particles/particleSystem.js.map +1 -1
  45. package/Particles/thinParticleSystem.d.ts +5 -3
  46. package/Particles/thinParticleSystem.js +6 -4
  47. package/Particles/thinParticleSystem.js.map +1 -1
  48. package/Physics/physicsPointProximityQuery.d.ts +1 -1
  49. package/Physics/physicsPointProximityQuery.js.map +1 -1
  50. package/Physics/v2/Plugins/havokPlugin.js +3 -1
  51. package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
  52. package/Physics/v2/physicsBody.d.ts +6 -1
  53. package/Physics/v2/physicsBody.js +7 -0
  54. package/Physics/v2/physicsBody.js.map +1 -1
  55. package/Physics/v2/ragdoll.d.ts +16 -5
  56. package/Physics/v2/ragdoll.js +91 -42
  57. package/Physics/v2/ragdoll.js.map +1 -1
  58. package/XR/features/WebXRAbstractFeature.d.ts +2 -1
  59. package/XR/features/WebXRAbstractFeature.js +3 -2
  60. package/XR/features/WebXRAbstractFeature.js.map +1 -1
  61. package/XR/features/WebXRControllerPointerSelection.d.ts +10 -0
  62. package/XR/features/WebXRControllerPointerSelection.js +41 -20
  63. package/XR/features/WebXRControllerPointerSelection.js.map +1 -1
  64. package/XR/features/WebXRControllerTeleportation.d.ts +1 -0
  65. package/XR/features/WebXRControllerTeleportation.js +7 -2
  66. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  67. package/assetContainer.js +1 -1
  68. package/assetContainer.js.map +1 -1
  69. package/assets/Basis/basis_transcoder.js +24 -0
  70. package/assets/Draco/draco_decoder_gltf.js +35 -0
  71. package/assets/Draco/draco_wasm_wrapper_gltf.js +116 -0
  72. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import type { Vector3 } from "../Maths/math.vector";
2
2
  import type { IRaycastQuery } from "./physicsRaycastResult";
3
- import type { PhysicsBody } from "./v2";
3
+ import type { PhysicsBody } from "./v2/physicsBody";
4
4
  /**
5
5
  * Interface for point proximity query.
6
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"physicsPointProximityQuery.js","sourceRoot":"","sources":["../../../../dev/core/src/Physics/physicsPointProximityQuery.ts"],"names":[],"mappings":"","sourcesContent":["import type { Vector3 } from \"../Maths/math.vector\";\r\nimport type { IRaycastQuery } from \"./physicsRaycastResult\";\r\nimport type { PhysicsBody } from \"./v2\";\r\n\r\n/**\r\n * Interface for point proximity query.\r\n */\r\nexport interface IPhysicsPointProximityQuery {\r\n /**\r\n * The position of the query\r\n */\r\n position: Vector3;\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 * Collision filter for the query.\r\n */\r\n collisionFilter: IRaycastQuery;\r\n /**\r\n * Should trigger collisions be considered in the query?\r\n */\r\n shouldHitTriggers: boolean;\r\n /**\r\n * Should the query ignore the body that is passed in?\r\n */\r\n ignoreBody?: PhysicsBody;\r\n}\r\n"]}
1
+ {"version":3,"file":"physicsPointProximityQuery.js","sourceRoot":"","sources":["../../../../dev/core/src/Physics/physicsPointProximityQuery.ts"],"names":[],"mappings":"","sourcesContent":["import type { Vector3 } from \"../Maths/math.vector\";\r\nimport type { IRaycastQuery } from \"./physicsRaycastResult\";\r\nimport type { PhysicsBody } from \"./v2/physicsBody\";\r\n\r\n/**\r\n * Interface for point proximity query.\r\n */\r\nexport interface IPhysicsPointProximityQuery {\r\n /**\r\n * The position of the query\r\n */\r\n position: Vector3;\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 * Collision filter for the query.\r\n */\r\n collisionFilter: IRaycastQuery;\r\n /**\r\n * Should trigger collisions be considered in the query?\r\n */\r\n shouldHitTriggers: boolean;\r\n /**\r\n * Should the query ignore the body that is passed in?\r\n */\r\n ignoreBody?: PhysicsBody;\r\n}\r\n"]}
@@ -308,7 +308,9 @@ export class HavokPlugin {
308
308
  this._hknp.HP_World_Step(this.world, deltaTime);
309
309
  this._bodyBuffer = this._hknp.HP_World_GetBodyBuffer(this.world)[1];
310
310
  for (const physicsBody of physicsBodies) {
311
- this.sync(physicsBody);
311
+ if (!physicsBody.disableSync) {
312
+ this.sync(physicsBody);
313
+ }
312
314
  }
313
315
  this._notifyCollisions();
314
316
  this._notifyTriggers();