@series-inc/rundot-syncplay 5.23.0-beta.7 → 5.23.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.
Files changed (75) hide show
  1. package/README.md +116 -15
  2. package/dist/browser.d.ts +87 -55
  3. package/dist/browser.js +47 -52
  4. package/dist/certification.d.ts +32 -3
  5. package/dist/certification.js +88 -3
  6. package/dist/cjs/browser.js +259 -87
  7. package/dist/cjs/certification.js +87 -2
  8. package/dist/cjs/collision.js +58 -0
  9. package/dist/cjs/creator.js +2 -1
  10. package/dist/cjs/engine-complete.js +213 -3
  11. package/dist/cjs/engine-parity-matrix.js +19 -4
  12. package/dist/cjs/index.js +199 -132
  13. package/dist/cjs/math.js +342 -15
  14. package/dist/cjs/movement3d.js +230 -1
  15. package/dist/cjs/node.js +5 -1
  16. package/dist/cjs/noise.js +58 -0
  17. package/dist/cjs/physics-cert.js +147 -6
  18. package/dist/cjs/physics2d.js +10 -4
  19. package/dist/cjs/physics3d-joints.js +637 -0
  20. package/dist/cjs/physics3d-shared.js +288 -0
  21. package/dist/cjs/physics3d-solver.js +1351 -0
  22. package/dist/cjs/physics3d-vehicle.js +467 -0
  23. package/dist/cjs/physics3d.js +1057 -223
  24. package/dist/cjs/random.js +49 -0
  25. package/dist/cjs/replay-bundle.js +127 -20
  26. package/dist/cjs/sample-scenes.js +3 -0
  27. package/dist/cjs/sdk-offline.js +6 -32
  28. package/dist/cjs/sdk-session.js +156 -0
  29. package/dist/cjs/session-build.js +42 -0
  30. package/dist/cjs/testing.js +107 -0
  31. package/dist/cli.js +40 -12
  32. package/dist/collision.d.ts +12 -0
  33. package/dist/collision.js +52 -0
  34. package/dist/creator.d.ts +1 -1
  35. package/dist/creator.js +1 -1
  36. package/dist/engine-complete.js +214 -4
  37. package/dist/engine-parity-matrix.js +19 -4
  38. package/dist/index.d.ts +94 -89
  39. package/dist/index.js +45 -56
  40. package/dist/math.d.ts +59 -6
  41. package/dist/math.js +342 -15
  42. package/dist/movement3d.d.ts +73 -0
  43. package/dist/movement3d.js +229 -1
  44. package/dist/node.d.ts +4 -0
  45. package/dist/node.js +2 -0
  46. package/dist/noise.d.ts +7 -0
  47. package/dist/noise.js +51 -0
  48. package/dist/physics-cert.d.ts +1 -1
  49. package/dist/physics-cert.js +147 -6
  50. package/dist/physics2d.js +10 -4
  51. package/dist/physics3d-joints.d.ts +94 -0
  52. package/dist/physics3d-joints.js +634 -0
  53. package/dist/physics3d-shared.d.ts +72 -0
  54. package/dist/physics3d-shared.js +257 -0
  55. package/dist/physics3d-solver.d.ts +197 -0
  56. package/dist/physics3d-solver.js +1346 -0
  57. package/dist/physics3d-vehicle.d.ts +84 -0
  58. package/dist/physics3d-vehicle.js +463 -0
  59. package/dist/physics3d.d.ts +108 -8
  60. package/dist/physics3d.js +1006 -177
  61. package/dist/random.d.ts +7 -0
  62. package/dist/random.js +49 -0
  63. package/dist/replay-bundle.d.ts +40 -1
  64. package/dist/replay-bundle.js +126 -20
  65. package/dist/sample-scenes.js +3 -0
  66. package/dist/sdk-offline.js +6 -32
  67. package/dist/sdk-session.d.ts +47 -0
  68. package/dist/sdk-session.js +153 -0
  69. package/dist/session-build.d.ts +21 -0
  70. package/dist/session-build.js +39 -0
  71. package/dist/testing.d.ts +52 -0
  72. package/dist/testing.js +45 -0
  73. package/dist/tools/vite-plugin.d.ts +8 -0
  74. package/dist/tools/vite-plugin.js +63 -9
  75. package/package.json +11 -3
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Impulse-level joint constraints for the deterministic rigid-body solver:
3
+ * ball (point-to-point), hinge (axis + limits + motor), weld, distance (rope),
4
+ * and grab (world-target point motor — the gravity-gun/carry primitive). Each
5
+ * joint is solved as accumulated impulses inside the solver's iteration loop
6
+ * via the `SolverJointSolve` interface; hinge angle and warm-start impulses live
7
+ * in the canonical joint cache.
8
+ *
9
+ * Angles (hinge `minAngle`/`maxAngle`/`motorSpeed`) are in radians / radians per
10
+ * tick — natural units for the radian-valued angular velocity the solver
11
+ * integrates.
12
+ */
13
+ import { Point3D } from './physics3d-shared.js';
14
+ import type { SolverJointCacheEntry, SolverJointSolve } from './physics3d-solver.js';
15
+ export type DeterministicPhysicsJoint3D = {
16
+ readonly id: string;
17
+ readonly type: 'ball';
18
+ readonly a: string;
19
+ readonly b: string;
20
+ readonly anchorA: Point3D;
21
+ readonly anchorB: Point3D;
22
+ readonly breakImpulse?: number;
23
+ readonly disableCollision?: boolean;
24
+ } | {
25
+ readonly id: string;
26
+ readonly type: 'hinge';
27
+ readonly a: string;
28
+ readonly b: string;
29
+ readonly anchorA: Point3D;
30
+ readonly anchorB: Point3D;
31
+ readonly axisA: Point3D;
32
+ readonly minAngle?: number;
33
+ readonly maxAngle?: number;
34
+ readonly motorSpeed?: number;
35
+ readonly maxMotorTorque?: number;
36
+ readonly breakImpulse?: number;
37
+ readonly disableCollision?: boolean;
38
+ } | {
39
+ readonly id: string;
40
+ readonly type: 'weld';
41
+ readonly a: string;
42
+ readonly b: string;
43
+ readonly anchorA: Point3D;
44
+ readonly anchorB: Point3D;
45
+ readonly breakImpulse?: number;
46
+ readonly disableCollision?: boolean;
47
+ } | {
48
+ readonly id: string;
49
+ readonly type: 'distance';
50
+ readonly a: string;
51
+ readonly b: string;
52
+ readonly anchorA: Point3D;
53
+ readonly anchorB: Point3D;
54
+ readonly minLength?: number;
55
+ readonly maxLength: number;
56
+ readonly breakImpulse?: number;
57
+ readonly disableCollision?: boolean;
58
+ } | {
59
+ readonly id: string;
60
+ readonly type: 'prismatic';
61
+ readonly a: string;
62
+ readonly b: string;
63
+ readonly anchorA: Point3D;
64
+ readonly anchorB: Point3D;
65
+ readonly axisA: Point3D;
66
+ readonly minTranslation?: number;
67
+ readonly maxTranslation?: number;
68
+ readonly motorSpeed?: number;
69
+ readonly maxMotorForce?: number;
70
+ readonly breakImpulse?: number;
71
+ readonly disableCollision?: boolean;
72
+ } | {
73
+ readonly id: string;
74
+ readonly type: 'spring';
75
+ readonly a: string;
76
+ readonly b: string;
77
+ readonly anchorA: Point3D;
78
+ readonly anchorB: Point3D;
79
+ readonly restLength: number;
80
+ readonly frequencyHz: number;
81
+ readonly dampingRatio: number;
82
+ } | {
83
+ readonly id: string;
84
+ readonly type: 'grab';
85
+ readonly body: string;
86
+ readonly anchor: Point3D;
87
+ readonly targetX: number;
88
+ readonly targetY: number;
89
+ readonly targetZ: number;
90
+ readonly maxForce: number;
91
+ readonly damping?: number;
92
+ };
93
+ /** Build solver joint objects from joint definitions, seeded from the joint cache. */
94
+ export declare function createSolverJoints(joints: readonly DeterministicPhysicsJoint3D[], indexById: Map<string, number>, jointCache: readonly SolverJointCacheEntry[]): SolverJointSolve[];