@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 +2 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
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
|
package/dist/index.d.mts.map
CHANGED
|
@@ -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;;;
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;;;
|
|
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
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flare-engine/dynamics",
|
|
3
|
-
"version": "0.3.
|
|
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.
|
|
40
|
+
"@flare-engine/math": "^0.3.1"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=20"
|