@adatechnology/game-destruction-three 1.1.2 → 1.2.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.
- package/dist/index.d.ts +3 -1
- package/dist/index.global.js +295 -39
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +147 -22
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { Quat, Vec3 } from '@adatechnology/game-destruction';
|
|
|
3
3
|
import { WorkerCoordinator, KitOrigin, HostSolid, DeferredQueue, DeferredQueueOptions, WarmUpProbes, BlastShoveOptions, TaskKind, Vec3 as Vec3$1 } from '@adatechnology/game-contracts';
|
|
4
4
|
import { HeightPatch } from '@adatechnology/game-terrain';
|
|
5
5
|
import { WorkerLike, WorkerScopeLike } from '@adatechnology/game-shapes';
|
|
6
|
-
import { Quat, WorkBudgetOptions, PhysicsLoop, SeamWorld, PhysicsEngine, WorldDesc, BlastQuery
|
|
6
|
+
import { Quat, BodyId, WorkBudgetOptions, PhysicsLoop, SeamWorld, PhysicsEngine, WorldDesc, BlastQuery } from '@adatechnology/game-physics';
|
|
7
7
|
export { DEFAULT_WORK_BUDGET_MS, isPhysicsLoop, physicsPieceCount } from '@adatechnology/game-physics';
|
|
8
8
|
import * as THREE_NS from 'three';
|
|
9
9
|
import { VfxWorld, SpriteKind } from '@adatechnology/game-vfx';
|
|
@@ -147,6 +147,8 @@ interface EngineImpactsOptions {
|
|
|
147
147
|
readonly minApproach?: number;
|
|
148
148
|
/** The radius (m) of the blunt contact. Default 0.1. */
|
|
149
149
|
readonly contactRadius?: number;
|
|
150
|
+
/** Bodies whose blows hit nothing: the debris left of a part that broke (`rubble`), which breaks nothing of the world. Default none. */
|
|
151
|
+
readonly harmless?: (body: BodyId) => boolean;
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
/** What happens to debris that is far from the player and old (`FarDebrisOptions.action`): it sleeps where it lies, or shrinks away and leaves the scene. Debris at rest is already drawn merged by `settledBatches`. */
|