@ignifx/physics 0.10.0 → 0.12.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
@@ -315,6 +315,13 @@ export declare abstract class Collider extends Component implements ComponentHoo
315
315
  onAttach(): void;
316
316
  /** Marks the entity's body for a rebuild, which removes this collider from it. */
317
317
  onDetach(): void;
318
+ /**
319
+ * Rebuilds the body after a tool changed fields from outside: an editor's inspector, or a hot
320
+ * reload's new default (`ComponentHooks.onValidate`).
321
+ *
322
+ * @param fields - The fields that changed.
323
+ */
324
+ onValidate(fields: readonly string[]): void;
318
325
  /**
319
326
  * Rebuilds the entity's body and shapes at the start of the next fixed step. Call it after
320
327
  * changing a size, a `center`, `isTrigger`, or the entity's scale.
@@ -354,6 +361,17 @@ export declare abstract class Collider extends Component implements ComponentHoo
354
361
  * @internal
355
362
  */
356
363
  abstract halfExtentsToRef(scale: Vec3Like, out: MutableVec3): void;
364
+ /**
365
+ * Appends this collider's outline, as line segments in the body's space with the scale applied,
366
+ * for `PhysicsService.colliderOutlines`. A collider whose shape cannot be outlined without its
367
+ * geometry appends nothing.
368
+ *
369
+ * @param scale - The entity's lossy scale.
370
+ * @param out - The segment list: six numbers per segment.
371
+ *
372
+ * @internal
373
+ */
374
+ outlineToRef(scale: Vec3Like, out: number[]): void;
357
375
  }
358
376
  //#endregion
359
377
  //#region src/events.d.ts
@@ -559,6 +577,13 @@ export declare class Rigidbody extends Component implements ComponentHooks {
559
577
  onAttach(): void;
560
578
  /** Marks the entity's body for a rebuild, which turns it back into an implicit static body. */
561
579
  onDetach(): void;
580
+ /**
581
+ * Rebuilds the body after a tool changed fields from outside: an editor's inspector, or a hot
582
+ * reload's new default (`ComponentHooks.onValidate`).
583
+ *
584
+ * @param fields - The fields that changed.
585
+ */
586
+ onValidate(fields: readonly string[]): void;
562
587
  /**
563
588
  * Rebuilds the body at the start of the next fixed step. Call it after changing `bodyType`,
564
589
  * `mass`, `freezeRotation`, or the entity's scale.
@@ -694,6 +719,13 @@ export declare class CharacterController extends Component implements ComponentH
694
719
  onAttach(): void;
695
720
  /** Releases the Lite controller. */
696
721
  onDetach(): void;
722
+ /**
723
+ * Rebuilds the body after a tool changed fields from outside: an editor's inspector, or a hot
724
+ * reload's new default (`ComponentHooks.onValidate`).
725
+ *
726
+ * @param fields - The fields that changed.
727
+ */
728
+ onValidate(fields: readonly string[]): void;
697
729
  /** Rebuilds the capsule at the start of the next fixed step. */
698
730
  rebuild(): void;
699
731
  /**
@@ -833,6 +865,15 @@ export declare class BoxCollider extends Collider {
833
865
  * @param out - The vector to write.
834
866
  */
835
867
  halfExtentsToRef(scale: Vec3Like, out: MutableVec3): void;
868
+ /**
869
+ * Appends the box's twelve edges.
870
+ *
871
+ * @param scale - The entity's lossy scale.
872
+ * @param out - The segment list.
873
+ *
874
+ * @internal
875
+ */
876
+ override outlineToRef(scale: Vec3Like, out: number[]): void;
836
877
  }
837
878
  /**
838
879
  * A sphere collider. Non-uniform scale is not representable as a sphere, so the largest scale axis
@@ -863,6 +904,15 @@ export declare class SphereCollider extends Collider {
863
904
  * @param out - The vector to write.
864
905
  */
865
906
  halfExtentsToRef(scale: Vec3Like, out: MutableVec3): void;
907
+ /**
908
+ * Appends the sphere's three great circles.
909
+ *
910
+ * @param scale - The entity's lossy scale.
911
+ * @param out - The segment list.
912
+ *
913
+ * @internal
914
+ */
915
+ override outlineToRef(scale: Vec3Like, out: number[]): void;
866
916
  }
867
917
  /**
868
918
  * A capsule collider: a cylinder with hemispherical caps, standing along one axis.
@@ -898,6 +948,15 @@ export declare class CapsuleCollider extends Collider {
898
948
  * @param out - The vector to write.
899
949
  */
900
950
  halfExtentsToRef(scale: Vec3Like, out: MutableVec3): void;
951
+ /**
952
+ * Appends the capsule's end rings, its sides, and its caps.
953
+ *
954
+ * @param scale - The entity's lossy scale.
955
+ * @param out - The segment list.
956
+ *
957
+ * @internal
958
+ */
959
+ override outlineToRef(scale: Vec3Like, out: number[]): void;
901
960
  }
902
961
  /**
903
962
  * A cylinder collider standing along Y.
@@ -928,6 +987,15 @@ export declare class CylinderCollider extends Collider {
928
987
  * @param out - The vector to write.
929
988
  */
930
989
  halfExtentsToRef(scale: Vec3Like, out: MutableVec3): void;
990
+ /**
991
+ * Appends the cylinder's end rings and its sides.
992
+ *
993
+ * @param scale - The entity's lossy scale.
994
+ * @param out - The segment list.
995
+ *
996
+ * @internal
997
+ */
998
+ override outlineToRef(scale: Vec3Like, out: number[]): void;
931
999
  }
932
1000
  /**
933
1001
  * A collider built from real geometry: either an explicit `MeshAsset` or, when `mesh` is
@@ -1007,6 +1075,17 @@ export declare class HeightfieldCollider extends Collider {
1007
1075
  * @param out - The vector to write.
1008
1076
  */
1009
1077
  halfExtentsToRef(scale: Vec3Like, out: MutableVec3): void;
1078
+ /**
1079
+ * Appends the bounding box of the samples: the field's extent across, centred on the entity as
1080
+ * Havok places it, and from its lowest to its highest sample in height. `center` does not apply
1081
+ * to a heightfield.
1082
+ *
1083
+ * @param scale - The entity's lossy scale.
1084
+ * @param out - The segment list.
1085
+ *
1086
+ * @internal
1087
+ */
1088
+ override outlineToRef(scale: Vec3Like, out: number[]): void;
1010
1089
  }
1011
1090
  //#endregion
1012
1091
  //#region src/errors.d.ts
@@ -1242,6 +1321,13 @@ interface BodyRecord {
1242
1321
  staticVersion: number;
1243
1322
  /** Whether the `IGX-0901` diagnostic has already been reported for this body. */
1244
1323
  reportedMove: boolean;
1324
+ /**
1325
+ * `Transform.worldMatrixVersion` when the body was last placed. An edit-mode app compares it each
1326
+ * frame to follow a transform the editor moved (ADR-0028, amendment of 2026-10-20).
1327
+ */
1328
+ placedVersion: number;
1329
+ /** The lossy scale the shapes were built at; a different scale needs new shapes. */
1330
+ readonly placedScale: Vec3;
1245
1331
  /** Signal connections the record owns, dropped when it is torn down. */
1246
1332
  disconnects: Disconnect[];
1247
1333
  }
@@ -1286,6 +1372,22 @@ interface PhysicsRuntimeOptions {
1286
1372
  /** The `physics` diagnostics group. */
1287
1373
  readonly counters: DiagnosticsGroup;
1288
1374
  }
1375
+ /**
1376
+ * Who hears about bodies coming and going: the debug viewer, which draws each one.
1377
+ *
1378
+ * @internal
1379
+ */
1380
+ interface BodyObserver {
1381
+ /** A body was added to the world. */
1382
+ added(body: LitePhysicsBody): void;
1383
+ /** A body is about to leave the world. */
1384
+ removed(body: LitePhysicsBody): void;
1385
+ /**
1386
+ * A body was re-placed: `next` stands in for `previous` on the same node with the same shapes, so
1387
+ * whatever was drawn for `previous` still fits and follows the node.
1388
+ */
1389
+ replaced(previous: LitePhysicsBody, next: LitePhysicsBody): void;
1390
+ }
1289
1391
  /**
1290
1392
  * The counters `09-physics.md` §9 and the plan's diagnostics deliverable name.
1291
1393
  *
@@ -1325,6 +1427,19 @@ declare class PhysicsRuntime {
1325
1427
  * @returns `true` once a step has completed.
1326
1428
  */
1327
1429
  get hasStepped(): boolean;
1430
+ /**
1431
+ * Whether this runtime belongs to an edit-mode app, where bodies are kept in sync with the world
1432
+ * by {@link PhysicsRuntime.syncEditMode} and never stepped (ADR-0028, amendment of 2026-10-20).
1433
+ *
1434
+ * @returns `true` in an editor's scene view.
1435
+ */
1436
+ get isEditMode(): boolean;
1437
+ /**
1438
+ * Sets who hears about bodies coming and going.
1439
+ *
1440
+ * @param observer - The observer, or `null` to stop.
1441
+ */
1442
+ setBodyObserver(observer: BodyObserver | null): void;
1328
1443
  /**
1329
1444
  * Every body, in creation order.
1330
1445
  *
@@ -1367,6 +1482,19 @@ declare class PhysicsRuntime {
1367
1482
  * @param fixedDeltaSeconds - The fixed step in seconds.
1368
1483
  */
1369
1484
  step(fixedDeltaSeconds: number): void;
1485
+ /**
1486
+ * Brings the bodies in line with the world without stepping, which is all an edit-mode app ever
1487
+ * does with them (ADR-0028, amendment of 2026-10-20): it builds, rebuilds, and removes bodies for
1488
+ * component and layer changes, and re-places every body and capsule whose transform moved, so a
1489
+ * query sees what the editor shows. Havok is never stepped, so nothing falls, no contact or
1490
+ * trigger event is produced, and no pose is written back to a transform.
1491
+ *
1492
+ * @remarks
1493
+ * A moved body is removed and added again with the shapes it has: a teleport alone leaves Havok's
1494
+ * broadphase where the body was, so a ray at the new place would miss it until a step. A changed
1495
+ * scale rebuilds the shapes too.
1496
+ */
1497
+ syncEditMode(): void;
1370
1498
  /**
1371
1499
  * Writes the interpolated display pose of every interpolated body and controller.
1372
1500
  *
@@ -1569,6 +1697,23 @@ interface PhysicsDebugViewer {
1569
1697
  */
1570
1698
  enabled: boolean;
1571
1699
  }
1700
+ /**
1701
+ * One collider's outline, from `app.physics.colliderOutlines`: what an editor draws as a collider
1702
+ * gizmo (ADR-0028, amendment of 2026-10-20).
1703
+ *
1704
+ * @public
1705
+ */
1706
+ interface ColliderOutline {
1707
+ /** The collider the outline is of. */
1708
+ readonly collider: Collider;
1709
+ /** Whether the collider is a trigger, which an editor usually draws in another colour. */
1710
+ readonly isTrigger: boolean;
1711
+ /**
1712
+ * The outline as world-space line segments: every six numbers are one segment, the `x, y, z` of
1713
+ * its two ends, in metres.
1714
+ */
1715
+ readonly lines: Float32Array;
1716
+ }
1572
1717
  /**
1573
1718
  * The service behind `app.physics`.
1574
1719
  *
@@ -1631,7 +1776,8 @@ export declare class PhysicsService {
1631
1776
  * @param maxDistance - How far to travel; defaults to 10 km.
1632
1777
  * @param options - Layer mask and trigger behaviour.
1633
1778
  * @returns The hit, or `null` when the ray clears everything.
1634
- * @throws IgnifxError with code `IGX-0902` in development when no fixed step has run yet.
1779
+ * @throws IgnifxError with code `IGX-0902` in development when no fixed step has run yet, outside
1780
+ * edit mode.
1635
1781
  */
1636
1782
  raycast(origin: Vec3Like, direction: Vec3Like, maxDistance?: number, options?: QueryOptions): RaycastHit | null;
1637
1783
  /**
@@ -1654,7 +1800,8 @@ export declare class PhysicsService {
1654
1800
  * @param to - The end position.
1655
1801
  * @param options - Layer mask, trigger behaviour, and the one entity to sweep through.
1656
1802
  * @returns The hit, or `null`.
1657
- * @throws IgnifxError with code `IGX-0902` in development when no fixed step has run yet.
1803
+ * @throws IgnifxError with code `IGX-0902` in development when no fixed step has run yet, outside
1804
+ * edit mode.
1658
1805
  */
1659
1806
  shapeCast(shape: QueryShape, from: Vec3Like, to: Vec3Like, options?: ShapeCastOptions): ShapeCastHit | null;
1660
1807
  /**
@@ -1674,7 +1821,8 @@ export declare class PhysicsService {
1674
1821
  * @param options - Layer mask and trigger behaviour.
1675
1822
  * @returns The overlapping entities, each once: bodies in creation order, then characters in
1676
1823
  * creation order. The array is reused between calls.
1677
- * @throws IgnifxError with code `IGX-0902` in development when no fixed step has run yet.
1824
+ * @throws IgnifxError with code `IGX-0902` in development when no fixed step has run yet, outside
1825
+ * edit mode.
1678
1826
  */
1679
1827
  overlap(shape: QueryShape, position: Vec3Like, rotation?: Quat, options?: QueryOptions): readonly Entity[];
1680
1828
  /**
@@ -1686,7 +1834,8 @@ export declare class PhysicsService {
1686
1834
  * @param maxDistance - How far to search.
1687
1835
  * @param options - Trigger behaviour.
1688
1836
  * @returns The distance, or `Number.POSITIVE_INFINITY` when nothing is in range.
1689
- * @throws IgnifxError with code `IGX-0902` in development when no fixed step has run yet.
1837
+ * @throws IgnifxError with code `IGX-0902` in development when no fixed step has run yet, outside
1838
+ * edit mode.
1690
1839
  */
1691
1840
  distanceToNearest(shape: QueryShape, position: Vec3Like, maxDistance: number, options?: QueryOptions): number;
1692
1841
  /**
@@ -1695,6 +1844,30 @@ export declare class PhysicsService {
1695
1844
  * @param enabled - Whether the viewer draws.
1696
1845
  */
1697
1846
  setDebugViewerEnabled(enabled: boolean): void;
1847
+ /**
1848
+ * The outlines of an entity's enabled colliders, as world-space line segments: what an editor
1849
+ * draws as collider gizmos (ADR-0028, amendment of 2026-10-20).
1850
+ *
1851
+ * @remarks
1852
+ * Each outline is built from the collider's fields, the entity's world pose, and its lossy scale,
1853
+ * the same inputs Havok's shape is built from, so it works in any app, headless included, and
1854
+ * before the first step. A box draws its edges; a sphere its three great circles; a capsule and a
1855
+ * cylinder their end rings, sides, and (for a capsule) caps; a `HeightfieldCollider` the bounding
1856
+ * box of its samples. A `MeshCollider` has no outline, because its triangles live on the GPU: its
1857
+ * `lines` is empty, and an editor draws the mesh's own wireframe instead.
1858
+ *
1859
+ * @param entity - The entity whose colliders to outline.
1860
+ * @returns One outline per enabled collider, in component order; empty when it has none or the
1861
+ * entity is inactive in the hierarchy, which builds no body.
1862
+ *
1863
+ * @example
1864
+ * ```ts
1865
+ * for (const outline of app.physics.colliderOutlines(selected)) {
1866
+ * drawLines(outline.lines, outline.isTrigger ? "orange" : "green");
1867
+ * }
1868
+ * ```
1869
+ */
1870
+ colliderOutlines(entity: Entity): readonly ColliderOutline[];
1698
1871
  /**
1699
1872
  * Whether the viewer is currently drawing.
1700
1873
  *
@@ -1707,7 +1880,8 @@ export declare class PhysicsService {
1707
1880
  * Whether at least one fixed step has completed, which is when Havok has built its broadphase and
1708
1881
  * queries become legal (`09-physics.md` §5). A script that queries from `lateUpdate` or `update`
1709
1882
  * checks this on the first frame, where the fixed loop may not have run yet, instead of catching
1710
- * `IGX-0902`.
1883
+ * `IGX-0902`. An edit-mode app never steps, so this stays `false` there, and its queries answer
1884
+ * anyway (ADR-0028, amendment of 2026-10-20).
1711
1885
  *
1712
1886
  * @returns `true` once the first step has run.
1713
1887
  */
@@ -1778,5 +1952,5 @@ export declare const physics: (options?: PhysicsOptions) => Extension;
1778
1952
  */
1779
1953
  export declare function describeSchemas(): Readonly<Record<string, SchemaDescription>>;
1780
1954
  //#endregion
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 };
1955
+ export type { BodyType, CapsuleDirection, CharacterCollision, ColliderOutline, Collision, CollisionEventMode, ContactPoint, FreezeRotation, InterpolationMode, KinematicSyncMode, PhysicsDebugViewer, PhysicsErrorOptions, PhysicsLiteHandles, PhysicsMaterialValues, PhysicsOptions, PhysicsSettings, QueryOptions, QueryShape, RaycastHit, RigidbodyLiteHandles, ShapeCastHit, ShapeCastOptions, SupportStateName, TriggerEvent, VelocityLimitSettings };
1782
1956
  //# 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;;;;;;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uB,WAAW,qBAAqB,KAAK;;;;;;;EAa5D,uBAAuB,WAAW,qBAAqB,KAAK;;;;;;;EAa5D,iBAAiB,WAAW,qBAAqB;;;;;;;EAejD,mBAAmB,WAAW,qBAAqB,UAAU;;;;;;EAmB7D,kBAAkB,WAAW;;;;;EAkB7B;;;;;;;;;;;;;;;cC3uBW;;EAEX,SAAS;;;;;;;;;;UCwBM;;WAEN,OAAO;;WAEP,iBAAiB;;;;;;;UAQX;;;;;EAKf;;;;;;;;;;;;;;;qBAgBW;;;;;;;;;;;EAkCX,YAAY,KAAK,KAAK,MAAM,aAAa,UAAU;;;;;;MAa/C,WAAW;;;;;;MASX,QAAQ,OAAO;;;;;;MAUf,eAAe;;;;;;MASf,QAAQ;;;;;;;;;;;;;;;;EAmBZ,QACE,QAAQ,UACR,WAAW,UACX,sBACA,UAAU,eACT;;;;;;;;;;;;;;;;;;;;;;;EAqFH,UAAU,OAAO,YAAY,MAAM,UAAU,IAAI,UAAU,UAAU,mBAAmB;;;;;;;;;;;;;;;;;;;;EAwDxF,QAAQ,OAAO,YAAY,UAAU,UAAU,WAAW,MAAM,UAAU,wBAAwB;;;;;;;;;;;;EAoClG,kBAAkB,OAAO,YAAY,UAAU,UAAU,qBAAqB,UAAU;;;;;;EAuBxF,sBAAsB;;;;;;EA+BtB;;EAKA;;;;;;;;;MA6BI;;;;;;;;;;;;;;UCpYW;;WAEN;;WAEA,aAAa;;;YAIZ;;aAEC,SAAS;;;;;;;;;;;;;;;;qBAqBT,UAAU,UAAU,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;wBCzCpC,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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