@anime-studio/rigid 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +43 -2
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +209 -0
- package/dist/index.js.map +1 -0
- package/package.json +47 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dener Fernandes
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @anime-studio/rigid
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@anime-studio/rigid)
|
|
4
|
+
[](https://github.com/denerFernandes/animeStudio/actions/workflows/ci.yml)
|
|
5
|
+
[](https://github.com/denerFernandes/animeStudio/blob/master/LICENSE)
|
|
6
|
+
|
|
7
|
+
Part of [animeStudio](https://github.com/denerFernandes/animeStudio), a deterministic 2D/2.5D cartoon animation engine: characters are
|
|
8
|
+
SVG art bound to skeletons, scenes are JSON documents, and every frame is a pure function of the
|
|
9
|
+
documents and the time.
|
|
10
|
+
|
|
11
|
+
Deterministic rigid-body physics (Rapier) for scene props that fall, bounce and collide with characters. `prepareScene` compiles a scene and bakes its bodies.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @anime-studio/core @anime-studio/rigid
|
|
17
|
+
# or
|
|
18
|
+
pnpm add @anime-studio/core @anime-studio/rigid
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Requires Node.js 22 or later (or a modern browser / bundler). The packages are ES modules with
|
|
22
|
+
TypeScript types included.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { evaluateScene, frameToSVG } from "@anime-studio/core";
|
|
28
|
+
import { prepareScene } from "@anime-studio/rigid";
|
|
29
|
+
|
|
30
|
+
const scene = await prepareScene(sceneDoc, { characters });
|
|
31
|
+
const svg = frameToSVG(evaluateScene(scene, 2));
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Documentation
|
|
35
|
+
|
|
36
|
+
- [Getting started and features](https://github.com/denerFernandes/animeStudio#readme)
|
|
37
|
+
- [Format specification](https://github.com/denerFernandes/animeStudio/blob/master/docs/FORMAT.md)
|
|
38
|
+
- [API reference](https://github.com/denerFernandes/animeStudio/blob/master/docs/API.md)
|
|
39
|
+
- [Authoring guide for AI agents](https://github.com/denerFernandes/animeStudio/blob/master/docs/AI_GUIDE.md)
|
|
40
|
+
- [Changelog](https://github.com/denerFernandes/animeStudio/blob/master/CHANGELOG.md)
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
MIT © Dener Fernandes
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type CompiledScene, type SceneAssets, type SceneDoc } from "@anime-studio/core";
|
|
2
|
+
/** Initializes the Rapier WASM module once. */
|
|
3
|
+
export declare function initRapier(): Promise<void>;
|
|
4
|
+
export declare const sceneHasBodies: (scene: CompiledScene) => boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Simulates all rigid bodies of a scene with deterministic Rapier at a fixed rate and attaches
|
|
7
|
+
* the results (`scene.rigid`). Grabs make bodies kinematic and follow the scene's own held
|
|
8
|
+
* placement (the anchor, `fit` and the anchor's `turn` included); releases hand them back to
|
|
9
|
+
* the simulation with the hand's velocity (or the given one). Sample `i` is the state at time
|
|
10
|
+
* `i / rate` for every body, held or free, like the character colliders.
|
|
11
|
+
*/
|
|
12
|
+
export declare function bakeRigidBodies(scene: CompiledScene): Promise<CompiledScene>;
|
|
13
|
+
/** Compiles a scene and bakes its rigid bodies (if any). */
|
|
14
|
+
export declare function prepareScene(doc: SceneDoc, assets: SceneAssets): Promise<CompiledScene>;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,WAAW,EAChB,KAAK,QAAQ,EASd,MAAM,oBAAoB,CAAC;AAM5B,+CAA+C;AAC/C,wBAAgB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAG1C;AAED,eAAO,MAAM,cAAc,UAAW,aAAa,KAAG,OAA8C,CAAC;AAgBrG;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAsLlF;AAED,4DAA4D;AAC5D,wBAAsB,YAAY,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAE7F"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import RAPIER from "@dimforge/rapier2d-deterministic-compat";
|
|
2
|
+
import { actorPlacement, actorPose, apply, compileScene, multiply, propPlacement, inSmoothTime, } from "@anime-studio/core";
|
|
3
|
+
/** Pixels per physics meter. Rapier is tuned for meter-scale worlds. */
|
|
4
|
+
const PPM = 100;
|
|
5
|
+
let ready = null;
|
|
6
|
+
/** Initializes the Rapier WASM module once. */
|
|
7
|
+
export function initRapier() {
|
|
8
|
+
ready ??= RAPIER.init();
|
|
9
|
+
return ready;
|
|
10
|
+
}
|
|
11
|
+
export const sceneHasBodies = (scene) => scene.props.some((p) => p.def.body);
|
|
12
|
+
/** Degrees → radians. */
|
|
13
|
+
const rad = (deg) => (deg * Math.PI) / 180;
|
|
14
|
+
/** The shortest signed difference `b − a` between two angles in degrees, in (−180, 180]. */
|
|
15
|
+
const angleDelta = (a, b) => ((((b - a) % 360) + 540) % 360) - 180;
|
|
16
|
+
/**
|
|
17
|
+
* Simulates all rigid bodies of a scene with deterministic Rapier at a fixed rate and attaches
|
|
18
|
+
* the results (`scene.rigid`). Grabs make bodies kinematic and follow the scene's own held
|
|
19
|
+
* placement (the anchor, `fit` and the anchor's `turn` included); releases hand them back to
|
|
20
|
+
* the simulation with the hand's velocity (or the given one). Sample `i` is the state at time
|
|
21
|
+
* `i / rate` for every body, held or free, like the character colliders.
|
|
22
|
+
*/
|
|
23
|
+
export async function bakeRigidBodies(scene) {
|
|
24
|
+
if (!sceneHasBodies(scene))
|
|
25
|
+
return scene;
|
|
26
|
+
await initRapier();
|
|
27
|
+
// The bake reads the scene's own placements (tracks, hands); a sampler left by an earlier bake
|
|
28
|
+
// would feed them its stale samples instead.
|
|
29
|
+
delete scene.rigid;
|
|
30
|
+
const world = scene.doc.world ?? {};
|
|
31
|
+
const rate = world.rate ?? 120;
|
|
32
|
+
const dt = 1 / rate;
|
|
33
|
+
const gravity = world.gravity ?? [0, 1800];
|
|
34
|
+
const physics = new RAPIER.World({ x: gravity[0] / PPM, y: gravity[1] / PPM });
|
|
35
|
+
physics.timestep = dt;
|
|
36
|
+
if (world.ground !== undefined) {
|
|
37
|
+
const ground = physics.createRigidBody(RAPIER.RigidBodyDesc.fixed().setTranslation(scene.width / 2 / PPM, (world.ground + 500) / PPM));
|
|
38
|
+
physics.createCollider(RAPIER.ColliderDesc.cuboid(100, 500 / PPM).setFriction(0.8), ground);
|
|
39
|
+
}
|
|
40
|
+
// Walkable surfaces (branches, hills) collide as static polylines.
|
|
41
|
+
for (const surface of Object.values(scene.surfaces)) {
|
|
42
|
+
if (surface.points.length < 2)
|
|
43
|
+
continue;
|
|
44
|
+
const verts = new Float32Array(surface.points.flatMap(([x, y]) => [x / PPM, y / PPM]));
|
|
45
|
+
const body = physics.createRigidBody(RAPIER.RigidBodyDesc.fixed());
|
|
46
|
+
physics.createCollider(RAPIER.ColliderDesc.polyline(verts).setFriction(0.8), body);
|
|
47
|
+
}
|
|
48
|
+
if (world.walls) {
|
|
49
|
+
for (const x of [-500, scene.width + 500]) {
|
|
50
|
+
const wall = physics.createRigidBody(RAPIER.RigidBodyDesc.fixed().setTranslation(x / PPM, scene.height / 2 / PPM));
|
|
51
|
+
physics.createCollider(RAPIER.ColliderDesc.cuboid(500 / PPM, 100), wall);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const scriptedType = (def) => def.type === "dynamic" ? RAPIER.RigidBodyType.Dynamic : def.type === "kinematic" ? RAPIER.RigidBodyType.KinematicPositionBased : RAPIER.RigidBodyType.Fixed;
|
|
55
|
+
const bodies = scene.props
|
|
56
|
+
.filter((p) => p.def.body)
|
|
57
|
+
.map((prop) => {
|
|
58
|
+
const def = prop.def.body;
|
|
59
|
+
const p0 = propPlacement(scene, prop, 0);
|
|
60
|
+
const desc = new RAPIER.RigidBodyDesc(scriptedType(def));
|
|
61
|
+
desc.setTranslation(p0.x / PPM, p0.y / PPM).setRotation(rad(p0.rotation));
|
|
62
|
+
if (def.velocity)
|
|
63
|
+
desc.setLinvel(def.velocity[0] / PPM, def.velocity[1] / PPM);
|
|
64
|
+
if (def.angularVelocity)
|
|
65
|
+
desc.setAngvel(rad(def.angularVelocity));
|
|
66
|
+
const body = physics.createRigidBody(desc);
|
|
67
|
+
const shape = "circle" in def.shape
|
|
68
|
+
? RAPIER.ColliderDesc.ball(def.shape.circle / PPM)
|
|
69
|
+
: RAPIER.ColliderDesc.cuboid(def.shape.box[0] / 2 / PPM, def.shape.box[1] / 2 / PPM);
|
|
70
|
+
shape
|
|
71
|
+
.setRestitution(def.restitution ?? 0.3)
|
|
72
|
+
.setFriction(def.friction ?? 0.5)
|
|
73
|
+
.setDensity(def.density ?? 1);
|
|
74
|
+
physics.createCollider(shape, body);
|
|
75
|
+
// `trail`: the last few held placements, oldest first (the hand's velocity at a release).
|
|
76
|
+
return { prop, def, body, samples: [], held: false, trail: [] };
|
|
77
|
+
});
|
|
78
|
+
const isHeld = (prop, time) => prop.grabs.some((g) => time >= g.start && time < g.end);
|
|
79
|
+
/** A held placement to move the body to; remembered for the release velocity. */
|
|
80
|
+
const holdAt = (b, time) => {
|
|
81
|
+
const p = propPlacement(scene, b.prop, time);
|
|
82
|
+
const sample = { t: time, x: p.x, y: p.y, rotation: p.rotation };
|
|
83
|
+
const last = b.trail[b.trail.length - 1];
|
|
84
|
+
if (!last || time > last.t)
|
|
85
|
+
b.trail = [...b.trail.slice(-3), sample];
|
|
86
|
+
return sample;
|
|
87
|
+
};
|
|
88
|
+
/** The hand's velocity (px/s) and spin (deg/s) over the last held placements. */
|
|
89
|
+
const handVelocity = (trail) => {
|
|
90
|
+
const first = trail[0];
|
|
91
|
+
const last = trail[trail.length - 1];
|
|
92
|
+
const span = last && first ? last.t - first.t : 0;
|
|
93
|
+
if (!(span > 0))
|
|
94
|
+
return { v: [0, 0], w: 0 };
|
|
95
|
+
return { v: [(last.x - first.x) / span, (last.y - first.y) / span], w: angleDelta(first.rotation, last.rotation) / span };
|
|
96
|
+
};
|
|
97
|
+
// Character colliders: kinematic capsules that follow the animated bones.
|
|
98
|
+
const boneSegment = (actor, bone, t) => {
|
|
99
|
+
const pose = actorPose(scene, actor, t);
|
|
100
|
+
const m = multiply(actorPlacement(actor, t), pose.world[bone]);
|
|
101
|
+
const a = apply(m, [0, 0]);
|
|
102
|
+
const b = apply(m, [actor.rig.bones[bone].length, 0]);
|
|
103
|
+
return { a, b, scale: Math.hypot(m[0], m[1]) };
|
|
104
|
+
};
|
|
105
|
+
const colliders = scene.actors.flatMap((actor) => actor.rig.colliders.map((c) => {
|
|
106
|
+
const { a, b, scale } = boneSegment(actor, c.bone, 0);
|
|
107
|
+
const len = Math.hypot(b[0] - a[0], b[1] - a[1]);
|
|
108
|
+
const body = physics.createRigidBody(RAPIER.RigidBodyDesc.kinematicPositionBased());
|
|
109
|
+
const r = (c.radius * scale) / PPM;
|
|
110
|
+
physics.createCollider(len > 1e-3 ? RAPIER.ColliderDesc.capsule(len / 2 / PPM, r) : RAPIER.ColliderDesc.ball(r), body);
|
|
111
|
+
const place = (t, teleport) => {
|
|
112
|
+
const seg = boneSegment(actor, c.bone, t);
|
|
113
|
+
const center = { x: (seg.a[0] + seg.b[0]) / 2 / PPM, y: (seg.a[1] + seg.b[1]) / 2 / PPM };
|
|
114
|
+
const angle = Math.atan2(seg.b[1] - seg.a[1], seg.b[0] - seg.a[0]) - Math.PI / 2;
|
|
115
|
+
if (teleport) {
|
|
116
|
+
body.setTranslation(center, true);
|
|
117
|
+
body.setRotation(angle, true);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
body.setNextKinematicTranslation(center);
|
|
121
|
+
body.setNextKinematicRotation(angle);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
place(0, true);
|
|
125
|
+
return place;
|
|
126
|
+
}));
|
|
127
|
+
// Each iteration samples the state at `t` and then steps the world to `t + dt`: kinematic
|
|
128
|
+
// targets (hands, scripted props, colliders) are therefore set for `t + dt`.
|
|
129
|
+
const steps = Math.ceil(scene.duration * rate) + 1;
|
|
130
|
+
// The simulation reads the motion as authored (hands on ones, no moving holds): a throw leaves the
|
|
131
|
+
// hand at the hand's real speed; the samples are then shown at drawing times like everything else.
|
|
132
|
+
inSmoothTime(() => {
|
|
133
|
+
for (let n = 0; n < steps; n++) {
|
|
134
|
+
const t = n * dt;
|
|
135
|
+
for (const b of bodies) {
|
|
136
|
+
const grab = b.prop.grabs.find((g) => t >= g.start && t < g.end);
|
|
137
|
+
if (grab) {
|
|
138
|
+
if (!b.held) {
|
|
139
|
+
// Taken: into the hand right now, so this sample is already held.
|
|
140
|
+
const p = holdAt(b, t);
|
|
141
|
+
b.body.setBodyType(RAPIER.RigidBodyType.KinematicPositionBased, true);
|
|
142
|
+
b.body.setTranslation({ x: p.x / PPM, y: p.y / PPM }, true);
|
|
143
|
+
b.body.setRotation(rad(p.rotation), true);
|
|
144
|
+
b.held = true;
|
|
145
|
+
}
|
|
146
|
+
// Where the hand is at the next sample; a grab that ends within the step keeps its last position.
|
|
147
|
+
const p = holdAt(b, isHeld(b.prop, t + dt) ? t + dt : t);
|
|
148
|
+
b.body.setNextKinematicTranslation({ x: p.x / PPM, y: p.y / PPM });
|
|
149
|
+
b.body.setNextKinematicRotation(rad(p.rotation));
|
|
150
|
+
}
|
|
151
|
+
else if (b.held) {
|
|
152
|
+
// Released: back to its scripted type (simulated, scripted or fixed), thrown with the hand's velocity.
|
|
153
|
+
const released = b.prop.grabs.filter((g) => g.end <= t).sort((g1, g2) => g2.end - g1.end)[0];
|
|
154
|
+
b.body.setBodyType(scriptedType(b.def), true);
|
|
155
|
+
if (b.def.type === "dynamic") {
|
|
156
|
+
const hand = handVelocity(b.trail);
|
|
157
|
+
const v = released?.releaseVelocity ?? hand.v;
|
|
158
|
+
b.body.setLinvel({ x: v[0] / PPM, y: v[1] / PPM }, true);
|
|
159
|
+
b.body.setAngvel(rad(hand.w), true);
|
|
160
|
+
}
|
|
161
|
+
b.held = false;
|
|
162
|
+
b.trail = [];
|
|
163
|
+
}
|
|
164
|
+
if (!grab && b.def.type === "kinematic") {
|
|
165
|
+
const p = propPlacement(scene, b.prop, t + dt);
|
|
166
|
+
b.body.setNextKinematicTranslation({ x: p.x / PPM, y: p.y / PPM });
|
|
167
|
+
b.body.setNextKinematicRotation(rad(p.rotation));
|
|
168
|
+
}
|
|
169
|
+
// Impulses are velocity changes in px/s.
|
|
170
|
+
for (const imp of b.prop.impulses) {
|
|
171
|
+
if (imp.at >= t && imp.at < t + dt) {
|
|
172
|
+
const m = b.body.mass();
|
|
173
|
+
b.body.applyImpulse({ x: (imp.vector[0] / PPM) * m, y: (imp.vector[1] / PPM) * m }, true);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const tr = b.body.translation();
|
|
177
|
+
b.samples.push(tr.x * PPM, tr.y * PPM, (b.body.rotation() * 180) / Math.PI);
|
|
178
|
+
}
|
|
179
|
+
for (const place of colliders)
|
|
180
|
+
place(t + dt, false);
|
|
181
|
+
physics.step();
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
const byId = new Map(bodies.map((b) => [b.prop.id, b.samples]));
|
|
185
|
+
const sampler = {
|
|
186
|
+
sample(propId, t) {
|
|
187
|
+
const s = byId.get(propId);
|
|
188
|
+
if (!s)
|
|
189
|
+
return undefined;
|
|
190
|
+
const count = s.length / 3;
|
|
191
|
+
const u = Math.min(Math.max(t * rate, 0), count - 1);
|
|
192
|
+
const i = Math.floor(u);
|
|
193
|
+
const j = Math.min(i + 1, count - 1);
|
|
194
|
+
const f = u - i;
|
|
195
|
+
const lerp = (k) => s[i * 3 + k] + (s[j * 3 + k] - s[i * 3 + k]) * f;
|
|
196
|
+
// Rapier reports angles in (−180, 180]: interpolate the short way round across the seam.
|
|
197
|
+
const rotation = s[i * 3 + 2] + angleDelta(s[i * 3 + 2], s[j * 3 + 2]) * f;
|
|
198
|
+
return { x: lerp(0), y: lerp(1), rotation };
|
|
199
|
+
},
|
|
200
|
+
};
|
|
201
|
+
physics.free();
|
|
202
|
+
scene.rigid = sampler;
|
|
203
|
+
return scene;
|
|
204
|
+
}
|
|
205
|
+
/** Compiles a scene and bakes its rigid bodies (if any). */
|
|
206
|
+
export async function prepareScene(doc, assets) {
|
|
207
|
+
return bakeRigidBodies(compileScene(doc, assets));
|
|
208
|
+
}
|
|
209
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,yCAAyC,CAAC;AAC7D,OAAO,EAOL,cAAc,EACd,SAAS,EACT,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,YAAY,GACb,MAAM,oBAAoB,CAAC;AAE5B,wEAAwE;AACxE,MAAM,GAAG,GAAG,GAAG,CAAC;AAChB,IAAI,KAAK,GAAyB,IAAI,CAAC;AAEvC,+CAA+C;AAC/C,MAAM,UAAU,UAAU;IACxB,KAAK,KAAK,MAAM,CAAC,IAAI,EAAE,CAAC;IACxB,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAoB,EAAW,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAErG,yBAAyB;AACzB,MAAM,GAAG,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;AAEnD,4FAA4F;AAC5F,MAAM,UAAU,GAAG,CAAC,CAAS,EAAE,CAAS,EAAU,EAAE,CAAC,CAAC,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,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;YACrC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAChB,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YAC7E,yFAAyF;YACzF,MAAM,QAAQ,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YAC3E,OAAO,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC;QAC9C,CAAC;KACF,CAAC;IACF,OAAO,CAAC,IAAI,EAAE,CAAC;IACf,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC;IACtB,OAAO,KAAK,CAAC;AACf,CAAC;AAED,4DAA4D;AAC5D,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,GAAa,EAAE,MAAmB;IACnE,OAAO,eAAe,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;AACpD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anime-studio/rigid",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Deterministic rigid-body physics (Rapier) for animeStudio scenes.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"animation",
|
|
7
|
+
"cartoon",
|
|
8
|
+
"2d-animation",
|
|
9
|
+
"svg",
|
|
10
|
+
"character-animation",
|
|
11
|
+
"animestudio",
|
|
12
|
+
"physics",
|
|
13
|
+
"rapier"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "Dener Fernandes (https://github.com/denerFernandes)",
|
|
17
|
+
"homepage": "https://github.com/denerFernandes/animeStudio/tree/master/packages/rigid#readme",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/denerFernandes/animeStudio.git",
|
|
21
|
+
"directory": "packages/rigid"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/denerFernandes/animeStudio/issues"
|
|
25
|
+
},
|
|
26
|
+
"type": "module",
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"import": "./dist/index.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"README.md",
|
|
38
|
+
"LICENSE"
|
|
39
|
+
],
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=22"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@dimforge/rapier2d-deterministic-compat": "^0.21.0",
|
|
48
|
+
"@anime-studio/core": "0.2.0"
|
|
49
|
+
}
|
|
6
50
|
}
|