@flare-engine/dynamics 0.3.0 → 0.3.1

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.mts CHANGED
@@ -34,6 +34,7 @@ interface BodyOptions {
34
34
  static?: boolean;
35
35
  }
36
36
  declare function createBody(opts: BodyOptions): Body;
37
+ declare function isStatic(b: Body): boolean;
37
38
  //#endregion
38
39
  //#region src/world.d.ts
39
40
  interface WorldOptions {
@@ -60,5 +61,5 @@ declare function addBody(world: World, body: Body): Body;
60
61
  * stillness should clamp small resting velocities at its own layer. */
61
62
  declare function step(world: World, dt: number): void;
62
63
  //#endregion
63
- export { type Body, type World, addBody, createBody, createWorld, step };
64
+ export { type Body, type BodyOptions, type World, type WorldOptions, addBody, createBody, createWorld, isStatic, step };
64
65
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/body.ts","../src/world.ts"],"mappings":";;UAOiB;;EAEf,UAAU;;EAEV,UAAU;;EAEV;;EAEA;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;UAGe;EACf,UAAU;EACV,MAAM;;EAEN;EACA,WAAW;EACX;EACA;EACA;EACA;;EAEA;;iBAGc,WAAW,MAAM,cAAc;;;UC5B9B;;EAEf,UAAU;;EAEV;;UAGe;EACf,QAAQ;EACR,SAAS;EACT;;iBAQc,YAAY,OAAM,eAAoB;iBAUtC,QAAQ,OAAO,OAAO,MAAM,OAAO;;;;;;;;;;iBAwKnC,KAAK,OAAO,OAAO"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/body.ts","../src/world.ts"],"mappings":";;UAOiB;;EAEf,UAAU;;EAEV,UAAU;;EAEV;;EAEA;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;UAGe;EACf,UAAU;EACV,MAAM;;EAEN;EACA,WAAW;EACX;EACA;EACA;EACA;;EAEA;;iBAGc,WAAW,MAAM,cAAc;iBA6B/B,SAAS,GAAG;;;UCzDX;;EAEf,UAAU;;EAEV;;UAGe;EACf,QAAQ;EACR,SAAS;EACT;;iBAQc,YAAY,OAAM,eAAoB;iBAUtC,QAAQ,OAAO,OAAO,MAAM,OAAO;;;;;;;;;;iBAwKnC,KAAK,OAAO,OAAO"}
package/dist/index.d.ts CHANGED
@@ -34,6 +34,7 @@ interface BodyOptions {
34
34
  static?: boolean;
35
35
  }
36
36
  declare function createBody(opts: BodyOptions): Body;
37
+ declare function isStatic(b: Body): boolean;
37
38
  //#endregion
38
39
  //#region src/world.d.ts
39
40
  interface WorldOptions {
@@ -60,5 +61,5 @@ declare function addBody(world: World, body: Body): Body;
60
61
  * stillness should clamp small resting velocities at its own layer. */
61
62
  declare function step(world: World, dt: number): void;
62
63
  //#endregion
63
- export { type Body, type World, addBody, createBody, createWorld, step };
64
+ export { type Body, type BodyOptions, type World, type WorldOptions, addBody, createBody, createWorld, isStatic, step };
64
65
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/body.ts","../src/world.ts"],"mappings":";;UAOiB;;EAEf,UAAU;;EAEV,UAAU;;EAEV;;EAEA;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;UAGe;EACf,UAAU;EACV,MAAM;;EAEN;EACA,WAAW;EACX;EACA;EACA;EACA;;EAEA;;iBAGc,WAAW,MAAM,cAAc;;;UC5B9B;;EAEf,UAAU;;EAEV;;UAGe;EACf,QAAQ;EACR,SAAS;EACT;;iBAQc,YAAY,OAAM,eAAoB;iBAUtC,QAAQ,OAAO,OAAO,MAAM,OAAO;;;;;;;;;;iBAwKnC,KAAK,OAAO,OAAO"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/body.ts","../src/world.ts"],"mappings":";;UAOiB;;EAEf,UAAU;;EAEV,UAAU;;EAEV;;EAEA;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;UAGe;EACf,UAAU;EACV,MAAM;;EAEN;EACA,WAAW;EACX;EACA;EACA;EACA;;EAEA;;iBAGc,WAAW,MAAM,cAAc;iBA6B/B,SAAS,GAAG;;;UCzDX;;EAEf,UAAU;;EAEV;;UAGe;EACf,QAAQ;EACR,SAAS;EACT;;iBAQc,YAAY,OAAM,eAAoB;iBAUtC,QAAQ,OAAO,OAAO,MAAM,OAAO;;;;;;;;;;iBAwKnC,KAAK,OAAO,OAAO"}
package/dist/index.js CHANGED
@@ -549,6 +549,7 @@ function step(world, dt) {
549
549
  exports.addBody = addBody;
550
550
  exports.createBody = createBody;
551
551
  exports.createWorld = createWorld;
552
+ exports.isStatic = isStatic;
552
553
  exports.step = step;
553
554
 
554
555
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -545,6 +545,6 @@ function step(world, dt) {
545
545
  }
546
546
  }
547
547
  //#endregion
548
- export { addBody, createBody, createWorld, step };
548
+ export { addBody, createBody, createWorld, isStatic, step };
549
549
 
550
550
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flare-engine/dynamics",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "2D rigid bodies: oriented boxes, contact manifolds, sequential-impulse solver",
5
5
  "keywords": ["flare-engine", "physics", "rigid-body", "obb", "solver"],
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "typecheck": "tsc --noEmit"
38
38
  },
39
39
  "dependencies": {
40
- "@flare-engine/math": "^0.3.0"
40
+ "@flare-engine/math": "^0.3.1"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=20"