@onerjs/core 8.44.4 → 8.44.6

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 (40) hide show
  1. package/Bones/skeleton.d.ts +6 -0
  2. package/Bones/skeleton.js +10 -0
  3. package/Bones/skeleton.js.map +1 -1
  4. package/Engines/Extensions/engine.rawTexture.js +2 -2
  5. package/Engines/Extensions/engine.rawTexture.js.map +1 -1
  6. package/Engines/abstractEngine.js +19 -9
  7. package/Engines/abstractEngine.js.map +1 -1
  8. package/Engines/thinEngine.js.map +1 -1
  9. package/FlowGraph/flowGraphCoordinator.js +5 -1
  10. package/FlowGraph/flowGraphCoordinator.js.map +1 -1
  11. package/FlowGraph/serialization.js +0 -1
  12. package/FlowGraph/serialization.js.map +1 -1
  13. package/Materials/Textures/equiRectangularCubeTexture.d.ts +5 -0
  14. package/Materials/Textures/equiRectangularCubeTexture.js +19 -0
  15. package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
  16. package/Materials/materialHelper.functions.js +3 -0
  17. package/Materials/materialHelper.functions.js.map +1 -1
  18. package/Meshes/abstractMesh.js +9 -0
  19. package/Meshes/abstractMesh.js.map +1 -1
  20. package/Meshes/mesh.js +12 -8
  21. package/Meshes/mesh.js.map +1 -1
  22. package/Misc/tools.js +1 -1
  23. package/Misc/tools.js.map +1 -1
  24. package/Particles/solidParticleSystem.d.ts +1 -0
  25. package/Particles/solidParticleSystem.js +32 -2
  26. package/Particles/solidParticleSystem.js.map +1 -1
  27. package/Physics/v2/Plugins/havokPlugin.d.ts +5 -3
  28. package/Physics/v2/Plugins/havokPlugin.js +9 -5
  29. package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
  30. package/Physics/v2/physicsBody.d.ts +5 -3
  31. package/Physics/v2/physicsBody.js +7 -5
  32. package/Physics/v2/physicsBody.js.map +1 -1
  33. package/Rendering/boundingBoxRenderer.js +9 -4
  34. package/Rendering/boundingBoxRenderer.js.map +1 -1
  35. package/Rendering/edgesRenderer.js +7 -4
  36. package/Rendering/edgesRenderer.js.map +1 -1
  37. package/package.json +1 -1
  38. package/Meshes/Compression/test/integration/draco.test.d.ts +0 -1
  39. package/Meshes/Compression/test/integration/draco.test.js +0 -30
  40. package/Meshes/Compression/test/integration/draco.test.js.map +0 -1
@@ -923,15 +923,17 @@ export declare class HavokPlugin implements IPhysicsEnginePluginV2 {
923
923
  /**
924
924
  * Return the collision observable for a particular physics body.
925
925
  * @param body the physics body
926
+ * @param instanceIndex - optionally, the index of the instance in the body
926
927
  * @returns the collision observable for the body
927
928
  */
928
- getCollisionObservable(body: PhysicsBody): Observable<IPhysicsCollisionEvent>;
929
+ getCollisionObservable(body: PhysicsBody, instanceIndex?: number): Observable<IPhysicsCollisionEvent>;
929
930
  /**
930
931
  * Return the collision ended observable for a particular physics body.
931
932
  * @param body the physics body
932
- * @returns
933
+ * @param instanceIndex - optionally, the index of the instance in the body
934
+ * @returns the collision ended observable for the body
933
935
  */
934
- getCollisionEndedObservable(body: PhysicsBody): Observable<IBasePhysicsCollisionEvent>;
936
+ getCollisionEndedObservable(body: PhysicsBody, instanceIndex?: number): Observable<IBasePhysicsCollisionEvent>;
935
937
  /**
936
938
  * Enable collision to be reported for a body when a callback is setup on the world
937
939
  * @param body the physics body
@@ -2334,10 +2334,12 @@ export class HavokPlugin {
2334
2334
  /**
2335
2335
  * Return the collision observable for a particular physics body.
2336
2336
  * @param body the physics body
2337
+ * @param instanceIndex - optionally, the index of the instance in the body
2337
2338
  * @returns the collision observable for the body
2338
2339
  */
2339
- getCollisionObservable(body) {
2340
- const bodyId = body._pluginData.hpBodyId[0];
2340
+ getCollisionObservable(body, instanceIndex) {
2341
+ const pluginRef = this._getPluginReference(body, instanceIndex);
2342
+ const bodyId = pluginRef.hpBodyId[0];
2341
2343
  let observable = this._bodyCollisionObservable.get(bodyId);
2342
2344
  if (!observable) {
2343
2345
  observable = new Observable();
@@ -2348,10 +2350,12 @@ export class HavokPlugin {
2348
2350
  /**
2349
2351
  * Return the collision ended observable for a particular physics body.
2350
2352
  * @param body the physics body
2351
- * @returns
2353
+ * @param instanceIndex - optionally, the index of the instance in the body
2354
+ * @returns the collision ended observable for the body
2352
2355
  */
2353
- getCollisionEndedObservable(body) {
2354
- const bodyId = body._pluginData.hpBodyId[0];
2356
+ getCollisionEndedObservable(body, instanceIndex) {
2357
+ const pluginRef = this._getPluginReference(body, instanceIndex);
2358
+ const bodyId = pluginRef.hpBodyId[0];
2355
2359
  let observable = this._bodyCollisionEndedObservable.get(bodyId);
2356
2360
  if (!observable) {
2357
2361
  observable = new Observable();