@ignifx/physics 0.7.0 → 0.9.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 CHANGED
@@ -404,17 +404,25 @@ interface TriggerEvent {
404
404
  readonly self: Entity;
405
405
  }
406
406
  /**
407
- * What a script's `onCollisionEnter`/`onCollisionStay`/`onCollisionExit` is handed.
407
+ * What a script's `onCollisionEnter`/`onCollisionStay`/`onCollisionExit` is handed. Both entities in
408
+ * a contact receive it, each with the other one as `other`.
408
409
  *
409
- * @remarks
410
- * `other` is `null` under the default `collisionIdentities: "upstream"` mode, because
411
- * `@babylonjs/lite@1.27.0` reports collisions without body identities (§4, ADR-0013). Register
412
- * `physics({ collisionIdentities: "internal" })` to opt into the waived drain that recovers them.
410
+ * @example
411
+ * ```ts
412
+ * class Crate extends Script implements ScriptCallbacks {
413
+ * static typeId = "mygame/Crate";
414
+ * onCollisionEnter(collision: Collision): void {
415
+ * if (collision.other?.tags.has("projectile") === true) {
416
+ * this.entity.destroy();
417
+ * }
418
+ * }
419
+ * }
420
+ * ```
413
421
  *
414
422
  * @public
415
423
  */
416
424
  interface Collision {
417
- /** The entity that was hit, or `null` when the identity is unavailable. */
425
+ /** The entity that was hit, or `null` when its body is not an entity's (a character controller's capsule). */
418
426
  readonly other: Entity | null;
419
427
  /** The other entity's first collider, or `null`. */
420
428
  readonly otherCollider: Collider | null;
@@ -422,7 +430,7 @@ interface Collision {
422
430
  readonly self: Entity;
423
431
  /** The contacts of this event. Pooled; valid only during the callback. */
424
432
  readonly contacts: readonly ContactPoint[];
425
- /** The relative velocity at the contact, or `null` when a body identity is unavailable. */
433
+ /** This body's velocity minus the other's at the contact, or `null` when `other` is `null`. */
426
434
  readonly relativeVelocity: Vec3Like | null;
427
435
  }
428
436
  /**
@@ -1038,8 +1046,6 @@ export declare const PhysicsErrorCode: {
1038
1046
  readonly colliderGeometryUnavailable: "IGX-0906";
1039
1047
  /** A physics body was built for an entity that has a parent, whose node pose is not world space. */
1040
1048
  readonly bodyOnChildEntity: "IGX-0907";
1041
- /** The ADR-0013 collision drain refused to bind because Babylon Lite's internals moved. */
1042
- readonly internalDrainUnavailable: "IGX-0908";
1043
1049
  };
1044
1050
  /**
1045
1051
  * The union of the codes the `PhysicsErrorCode` table declares.
@@ -1091,7 +1097,8 @@ export declare function physicsError(code: PhysicsErrorCode, message: string, op
1091
1097
  /**
1092
1098
  * Raycasts return backend body identities. Shape casts use backend hit geometry and the local
1093
1099
  * body-bounds index for identity; overlaps use that index entirely. Shape-cast identities and
1094
- * overlap results are bounds-accurate, not exact shape intersections.
1100
+ * overlap results are bounds-accurate, not exact shape intersections. Every query can hit a
1101
+ * `Rigidbody`, a collider-only static body, or a `CharacterController` capsule.
1095
1102
  */
1096
1103
  /**
1097
1104
  * Options every query accepts.
@@ -1153,9 +1160,12 @@ type QueryShape = {
1153
1160
  * @public
1154
1161
  */
1155
1162
  interface RaycastHit {
1156
- /** The entity that was hit. */
1163
+ /** The entity that was hit: a body's entity, or a `CharacterController`'s entity for its capsule. */
1157
1164
  readonly entity: Entity;
1158
- /** The collider on that entity, or `null` when the entity has none registered any more. */
1165
+ /**
1166
+ * The collider on that entity, or `null` for a `CharacterController` capsule or an entity with no
1167
+ * collider registered any more.
1168
+ */
1159
1169
  readonly collider: Collider | null;
1160
1170
  /** The world-space contact point. */
1161
1171
  readonly point: Vec3Like;
@@ -1172,9 +1182,12 @@ interface RaycastHit {
1172
1182
  * @public
1173
1183
  */
1174
1184
  interface ShapeCastHit {
1175
- /** The entity the swept shape hit, or `null` when the bounds index cannot identify it. */
1185
+ /**
1186
+ * The entity the swept shape hit — a `CharacterController`'s entity for its capsule — or `null`
1187
+ * when the bounds index cannot identify it or `layerMask` excludes it.
1188
+ */
1176
1189
  readonly entity: Entity | null;
1177
- /** The collider on that entity, or `null`. */
1190
+ /** The collider on that entity, or `null`, which is always the case for a capsule. */
1178
1191
  readonly collider: Collider | null;
1179
1192
  /** The world-space contact point on the hit body. */
1180
1193
  readonly point: Vec3Like;
@@ -1232,6 +1245,24 @@ interface BodyRecord {
1232
1245
  /** Signal connections the record owns, dropped when it is torn down. */
1233
1246
  disconnects: Disconnect[];
1234
1247
  }
1248
+ /**
1249
+ * What a query can resolve a hit to: a {@link BodyRecord}, or a `CharacterController`'s capsule,
1250
+ * which is a Havok body the runtime keeps with its controllers rather than its body records.
1251
+ *
1252
+ * @internal
1253
+ */
1254
+ interface QueryTarget {
1255
+ /** The entity a hit is reported against. */
1256
+ readonly entity: Entity;
1257
+ /** The colliders that make up the body; empty for a character capsule. */
1258
+ readonly colliders: readonly Collider[];
1259
+ /** The layer queries filter by; a runtime `entity.layer` change lands on the next fixed step. */
1260
+ readonly layer: number;
1261
+ /** The centre of the world bounding box, as of the last fixed step. */
1262
+ readonly currentPosition: Vec3;
1263
+ /** Half the world bounding box. */
1264
+ readonly halfExtents: Vec3;
1265
+ }
1235
1266
  //#endregion
1236
1267
  //#region src/runtime/runtime.d.ts
1237
1268
  /**
@@ -1242,18 +1273,6 @@ interface BodyRecord {
1242
1273
  * Everything here is `@internal`; the public surface is `PhysicsService`, `Rigidbody`, the
1243
1274
  * colliders, and `CharacterController`.
1244
1275
  */
1245
- /**
1246
- * How collision events learn which bodies took part (`09-physics.md` §4, ADR-0013).
1247
- *
1248
- * @public
1249
- */
1250
- export declare const COLLISION_IDENTITY_MODES: readonly ["upstream", "internal"];
1251
- /**
1252
- * The union of {@link COLLISION_IDENTITY_MODES}.
1253
- *
1254
- * @public
1255
- */
1256
- type CollisionIdentityMode = (typeof COLLISION_IDENTITY_MODES)[number];
1257
1276
  /** What the extension hands the runtime. */
1258
1277
  interface PhysicsRuntimeOptions {
1259
1278
  /** The extension registration surface; the physics kernel hooks live on it. */
@@ -1264,8 +1283,6 @@ interface PhysicsRuntimeOptions {
1264
1283
  readonly simulation: SimulationHandles;
1265
1284
  /** The Havok world. */
1266
1285
  readonly world: LitePhysicsWorld;
1267
- /** Which collision-identity path to use. */
1268
- readonly collisionIdentities: CollisionIdentityMode;
1269
1286
  /** The `physics` diagnostics group. */
1270
1287
  readonly counters: DiagnosticsGroup;
1271
1288
  }
@@ -1291,9 +1308,8 @@ declare class PhysicsRuntime {
1291
1308
  /**
1292
1309
  * Builds the runtime, applies the world settings, and registers the event drains.
1293
1310
  *
1294
- * @param options - The context, settings, scene, world, identity mode, and counters.
1295
- * @throws IgnifxError with code `IGX-0905` when the collision matrix names an unknown layer, or
1296
- * `IGX-0908` when the internal drain does not recognise this Babylon Lite build.
1311
+ * @param options - The context, settings, scene, world, and counters.
1312
+ * @throws IgnifxError with code `IGX-0905` when the collision matrix names an unknown layer.
1297
1313
  */
1298
1314
  constructor(options: PhysicsRuntimeOptions);
1299
1315
  /**
@@ -1388,6 +1404,27 @@ declare class PhysicsRuntime {
1388
1404
  * @returns The record, or `null`.
1389
1405
  */
1390
1406
  recordOfNode(node: LiteSceneNode | null): BodyRecord | null;
1407
+ /**
1408
+ * What a query hit on a Lite node: a body record, or a character controller's capsule.
1409
+ *
1410
+ * @param node - The node of the body that was hit.
1411
+ * @returns The target, or `null` when the node belongs to neither.
1412
+ */
1413
+ targetOfNode(node: LiteSceneNode | null): QueryTarget | null;
1414
+ /**
1415
+ * How many entries the query index holds: every body record, then every character controller.
1416
+ *
1417
+ * @returns The count.
1418
+ */
1419
+ get queryTargetCount(): number;
1420
+ /**
1421
+ * One entry of the query index. Bodies come first and controllers after, each in creation order,
1422
+ * so `overlap` lists them in a stable order (`09-physics.md` §8).
1423
+ *
1424
+ * @param index - An index below {@link PhysicsRuntime.queryTargetCount}.
1425
+ * @returns The target, or `undefined` past the end.
1426
+ */
1427
+ queryTargetAt(index: number): QueryTarget | undefined;
1391
1428
  /** Counts one query for the diagnostics group. */
1392
1429
  countQuery(): void;
1393
1430
  /**
@@ -1584,6 +1621,11 @@ export declare class PhysicsService {
1584
1621
  /**
1585
1622
  * Casts a ray and returns the first entity it hits (`09-physics.md` §5).
1586
1623
  *
1624
+ * @remarks
1625
+ * The ray hits `Rigidbody` and collider-only bodies and `CharacterController` capsules. A capsule
1626
+ * hit reports the character's entity with `collider: null`. A ray passes through a capsule when
1627
+ * `layerMask` leaves out the character's layer, or when the ray starts inside it.
1628
+ *
1587
1629
  * @param origin - The world-space origin.
1588
1630
  * @param direction - The direction; it is normalised for you.
1589
1631
  * @param maxDistance - How far to travel; defaults to 10 km.
@@ -1597,7 +1639,9 @@ export declare class PhysicsService {
1597
1639
  *
1598
1640
  * @remarks
1599
1641
  * Lite's `shapeCast` reports no body (`index.d.ts` 11497), so `entity` is resolved against the
1600
- * extension's body-bounds index and is bounds-accurate rather than shape-accurate.
1642
+ * extension's body-bounds index and is bounds-accurate rather than shape-accurate. The index holds
1643
+ * every `Rigidbody` and collider-only body and every `CharacterController` capsule; a capsule
1644
+ * contact reports the character's entity with `collider: null`.
1601
1645
  *
1602
1646
  * The sweep itself cannot be filtered by layer — Lite's `ShapeCastQuery` carries no collision
1603
1647
  * masks — so a body outside `layerMask` still stops the sweep; it is merely reported with
@@ -1619,15 +1663,17 @@ export declare class PhysicsService {
1619
1663
  * @remarks
1620
1664
  * Lite's `shapeProximity` reports one hit and no identity (`index.d.ts` 11540,
1621
1665
  * `lib/physics/havok-queries.js:7`), so this is answered from the extension's own bounds index:
1622
- * every registered body whose world bounding box intersects the query shape's. It is conservative
1623
- * — a body whose box overlaps but whose shape does not is listed.
1666
+ * every `Rigidbody`, collider-only body and `CharacterController` capsule whose world bounding box
1667
+ * intersects the query shape's. It is conservative — a body whose box overlaps but whose shape
1668
+ * does not is listed.
1624
1669
  *
1625
1670
  * @param shape - The query shape.
1626
1671
  * @param position - Its world position.
1627
1672
  * @param rotation - Its world rotation; accepted for forward compatibility and currently unused,
1628
1673
  * because the bounds test is axis-aligned.
1629
1674
  * @param options - Layer mask and trigger behaviour.
1630
- * @returns The overlapping entities, in body creation order. The array is reused between calls.
1675
+ * @returns The overlapping entities, each once: bodies in creation order, then characters in
1676
+ * creation order. The array is reused between calls.
1631
1677
  * @throws IgnifxError with code `IGX-0902` in development when no fixed step has run yet.
1632
1678
  */
1633
1679
  overlap(shape: QueryShape, position: Vec3Like, rotation?: Quat, options?: QueryOptions): readonly Entity[];
@@ -1680,12 +1726,6 @@ export declare class PhysicsService {
1680
1726
  * @public
1681
1727
  */
1682
1728
  interface PhysicsOptions {
1683
- /**
1684
- * How collision callbacks learn which bodies took part (ADR-0013). `"upstream"` is the default and
1685
- * delivers contacts with `other === null`, because `@babylonjs/lite@1.27.0` reports no identities;
1686
- * `"internal"` opts into the waived adapter-internal drain that recovers them.
1687
- */
1688
- readonly collisionIdentities?: CollisionIdentityMode;
1689
1729
  /** An already-instantiated Havok module, which skips loading entirely. */
1690
1730
  readonly havok?: unknown;
1691
1731
  /** The `HavokPhysics.wasm` bytes, for a host that reads them itself. */
@@ -1738,5 +1778,5 @@ export declare const physics: (options?: PhysicsOptions) => Extension;
1738
1778
  */
1739
1779
  export declare function describeSchemas(): Readonly<Record<string, SchemaDescription>>;
1740
1780
  //#endregion
1741
- export type { BodyType, CapsuleDirection, CharacterCollision, Collision, CollisionEventMode, CollisionIdentityMode, ContactPoint, FreezeRotation, InterpolationMode, KinematicSyncMode, PhysicsDebugViewer, PhysicsErrorOptions, PhysicsLiteHandles, PhysicsMaterialValues, PhysicsOptions, PhysicsSettings, QueryOptions, QueryShape, RaycastHit, RigidbodyLiteHandles, ShapeCastHit, ShapeCastOptions, SupportStateName, TriggerEvent, VelocityLimitSettings };
1781
+ export type { BodyType, CapsuleDirection, CharacterCollision, Collision, CollisionEventMode, ContactPoint, FreezeRotation, InterpolationMode, KinematicSyncMode, PhysicsDebugViewer, PhysicsErrorOptions, PhysicsLiteHandles, PhysicsMaterialValues, PhysicsOptions, PhysicsSettings, QueryOptions, QueryShape, RaycastHit, RigidbodyLiteHandles, ShapeCastHit, ShapeCastOptions, SupportStateName, TriggerEvent, VelocityLimitSettings };
1742
1782
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/settings.ts","../src/material.ts","../src/lite/havok.ts","../src/components/collider.ts","../src/events.ts","../src/components/rigidbody.ts","../src/components/character-controller.ts","../src/components/colliders.ts","../src/errors.ts","../src/queries.ts","../src/runtime/body-record.ts","../src/runtime/runtime.ts","../src/runtime/host.ts","../src/service.ts","../src/extension.ts","../src/schemas.ts"],"mappings":";;;;;;;;;;;;;;qBAea;;;;;;qBAOA;;;;;;;UAQI;;WAEN;;WAEA;;WAEA;;;;;;;;UASM;;WAEN;;WAEA;;;;;;;;;;;;;;;;;;;UAoBM;;WAEN,SAAS;;;;;WAKT,iBAAiB,SAAS;;WAE1B,iBAAiB;;WAEjB,gBAAgB;;WAEhB;;WAEA;;;;;;;;;;;;;wBA8BK,yBAAyB;;;;;;;;wBAyBzB,0BAA0B;;;;;;;;;;;;;qBC5H7B;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;;;;;;;;;qBAcA,2BAA2B;;SAE/B;;WAGE;;WAGA;;WAGA;;WAGA;;;;;;;;EAST,YAAY,cAAc,QAAQ;;;;;;;;;;;;;SAmB3B,WAAW,cAAc,QAAQ,QAAQ,yBAAyB;;;;;;;;;wBAiB3D,+BAA+B,YAAY;;;;;;;;;;;wBAqB3C,qBAAqB,iBAAiB,UAAU,YAAY;;;;;;;;;wBAgC5D,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KC9FzC,mBAAmB;;;;;;;KAQnB,kBAAkB;;;;;;KAOlB,mBAAmB;;;;;;;cAQlB;;WAEX;;WAEA;;WAEA;;;;;;;KAQU,qBAAqB,yBAAyB;;UA0EzC;;WAEN,QAAQ;;WAER,OAAO;;;;;;;;;;;;;;;;wBCnKF,kBAAkB;;;;;;;8BAsBZ,iBAAiB,qBAAqB;;SAEnD;;EAGP,QAAgB;;EAGhB;;EAGA,UAAkB,YAAY;;EAG9B,gBAAwB;;EAGxB;;;;EAKA;;EAMA;;EAKA;;;;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AQ,OAAO;;;;;;MAUf,eAAe;;;;;;MASf,QAAQ;;;;;;;;;;;EAcZ,QACE,QAAQ,UACR,WAAW,UACX,sBACA,UAAU,eACT;;;;;;;;;;;;;;;;;;;;;EA6DH,UAAU,OAAO,YAAY,MAAM,UAAU,IAAI,UAAU,UAAU,mBAAmB;;;;;;;;;;;;;;;;;;EAsDxF,QAAQ,OAAO,YAAY,UAAU,UAAU,WAAW,MAAM,UAAU,wBAAwB;;;;;;;;;;;;EA8BlG,kBAAkB,OAAO,YAAY,UAAU,UAAU,qBAAqB,UAAU;;;;;;EAuBxF,sBAAsB;;;;;;EA+BtB;;EAKA;;;;;;;;;MA6BI;;;;;;;;;;;;;;UCzVW;;;;;;WAMN,sBAAsB;;WAEtB;;WAEA,aAAa;;;YAIZ;;aAEC,SAAS;;;;;;;;;;;;;;;;qBAqBT,UAAU,UAAU,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;wBChDpC,mBAAmB,SAAS,eAAe"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/settings.ts","../src/material.ts","../src/lite/havok.ts","../src/components/collider.ts","../src/events.ts","../src/components/rigidbody.ts","../src/components/character-controller.ts","../src/components/colliders.ts","../src/errors.ts","../src/queries.ts","../src/runtime/body-record.ts","../src/runtime/runtime.ts","../src/runtime/host.ts","../src/service.ts","../src/extension.ts","../src/schemas.ts"],"mappings":";;;;;;;;;;;;;;qBAea;;;;;;qBAOA;;;;;;;UAQI;;WAEN;;WAEA;;WAEA;;;;;;;;UASM;;WAEN;;WAEA;;;;;;;;;;;;;;;;;;;UAoBM;;WAEN,SAAS;;;;;WAKT,iBAAiB,SAAS;;WAE1B,iBAAiB;;WAEjB,gBAAgB;;WAEhB;;WAEA;;;;;;;;;;;;;wBA8BK,yBAAyB;;;;;;;;wBAyBzB,0BAA0B;;;;;;;;;;;;;qBC5H7B;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;;;;;;;;;qBAcA,2BAA2B;;SA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