@absolutejs/rapier3d 0.2.1 → 0.3.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.
@@ -560,6 +560,14 @@ export declare class World {
560
560
  * Only works if the internal profiler is enabled with `World.profilerEnabled = true`.
561
561
  */
562
562
  get profilerEnabled(): boolean;
563
+ /**
564
+ * Actual CCD passes recorded by the last completed profiled step, not the
565
+ * configured maximum. Zero means CCD did not act; the world still advanced.
566
+ * Returns null before a profiled step, while profiling is disabled, and after
567
+ * changing profilerEnabled until another step completes. Profiling is opt-in.
568
+ * This count does not expose internal substep durations or time of impact.
569
+ */
570
+ ccdSubsteps(): number | null;
563
571
  /**
564
572
  * The time spent in milliseconds by the last step to run the entire simulation step.
565
573
  *
@@ -883,6 +883,7 @@ export class RawNarrowPhase {
883
883
  export class RawPhysicsPipeline {
884
884
  free(): void;
885
885
  [Symbol.dispose](): void;
886
+ ccd_substeps(): number | undefined;
886
887
  is_profiler_enabled(): boolean;
887
888
  constructor();
888
889
  set_profiler_enabled(enabled: boolean): void;
@@ -2381,6 +2382,7 @@ export interface InitOutput {
2381
2382
  readonly rawnarrowphase_intersection_pair: (a: number, b: number, c: number) => number;
2382
2383
  readonly rawnarrowphase_intersection_pairs_with: (a: number, b: number, c: number) => void;
2383
2384
  readonly rawnarrowphase_new: () => number;
2385
+ readonly rawphysicspipeline_ccd_substeps: (a: number) => number;
2384
2386
  readonly rawphysicspipeline_is_profiler_enabled: (a: number) => number;
2385
2387
  readonly rawphysicspipeline_new: () => number;
2386
2388
  readonly rawphysicspipeline_set_profiler_enabled: (a: number, b: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/rapier3d",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Rapier 3D with separate geometric and clustered solver-contact inspection",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",