@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.
- package/Bones/skeleton.d.ts +6 -0
- package/Bones/skeleton.js +10 -0
- package/Bones/skeleton.js.map +1 -1
- package/Engines/Extensions/engine.rawTexture.js +2 -2
- package/Engines/Extensions/engine.rawTexture.js.map +1 -1
- package/Engines/abstractEngine.js +19 -9
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/thinEngine.js.map +1 -1
- package/FlowGraph/flowGraphCoordinator.js +5 -1
- package/FlowGraph/flowGraphCoordinator.js.map +1 -1
- package/FlowGraph/serialization.js +0 -1
- package/FlowGraph/serialization.js.map +1 -1
- package/Materials/Textures/equiRectangularCubeTexture.d.ts +5 -0
- package/Materials/Textures/equiRectangularCubeTexture.js +19 -0
- package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
- package/Materials/materialHelper.functions.js +3 -0
- package/Materials/materialHelper.functions.js.map +1 -1
- package/Meshes/abstractMesh.js +9 -0
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/mesh.js +12 -8
- package/Meshes/mesh.js.map +1 -1
- package/Misc/tools.js +1 -1
- package/Misc/tools.js.map +1 -1
- package/Particles/solidParticleSystem.d.ts +1 -0
- package/Particles/solidParticleSystem.js +32 -2
- package/Particles/solidParticleSystem.js.map +1 -1
- package/Physics/v2/Plugins/havokPlugin.d.ts +5 -3
- package/Physics/v2/Plugins/havokPlugin.js +9 -5
- package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
- package/Physics/v2/physicsBody.d.ts +5 -3
- package/Physics/v2/physicsBody.js +7 -5
- package/Physics/v2/physicsBody.js.map +1 -1
- package/Rendering/boundingBoxRenderer.js +9 -4
- package/Rendering/boundingBoxRenderer.js.map +1 -1
- package/Rendering/edgesRenderer.js +7 -4
- package/Rendering/edgesRenderer.js.map +1 -1
- package/package.json +1 -1
- package/Meshes/Compression/test/integration/draco.test.d.ts +0 -1
- package/Meshes/Compression/test/integration/draco.test.js +0 -30
- 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
|
-
* @
|
|
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
|
|
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
|
-
* @
|
|
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
|
|
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();
|