Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
HG0: two crates. raea-sys-grab passed 2,000 lines, so the body's half is raea-sys-body (systems/body: the rig, arm IK, joint limits, pose fitting, the hand prior and its data), what sdk/body is in TypeScript; raea-sys-grab keeps what the hands do with things (shapes, holds, the trunk's part, the take, the JSON calls). No behaviour changes; 23 tests
shinyobjectz604064e72019
diff --git a/Cargo.lock b/Cargo.lockindex f9ba3f61..dc14e5ec 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -15515,6 +15515,14 @@ dependencies = ["simba",]+[[package]]+name = "raea-sys-body"+version = "0.1.0"+dependencies = [+ "glam 0.33.12",+ "serde_json",+]+[[package]]name = "raea-sys-canvas"version = "0.1.0"@@ -15727,6 +15735,7 @@ name = "raea-sys-grab"version = "0.1.0"dependencies = ["glam 0.33.12",+ "raea-sys-body","serde_json",]diff --git a/Cargo.toml b/Cargo.tomlindex 4805abad..c3403496 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -106,6 +106,7 @@ members = ["systems/page-ops","systems/frame","systems/hold",+ "systems/body","systems/grab","systems/layers","systems/splat",diff --git a/docs/hands.feature b/docs/hands.featureindex 53a7e8b2..477dff83 100644--- a/docs/hands.feature+++ b/docs/hands.feature@@ -46,9 +46,30 @@ Feature: Procedural arms and hands: a character reaches for, takes, holds, carriRule: Built+ Scenario: HG0. Where it lives+ # Two crates, split when the first passed 2,000 lines: raea-sys-body is the character's body in Rust (what+ # sdk/body is in TypeScript), raea-sys-grab is what the hands do with things.+ Then the plan:+ | crate | file | lines | job |+ | raea-sys-body | src/rig.rs | 240 | the rig, poses, forward kinematics, a hand's frame, a stand-in body |+ | raea-sys-body | src/arm.rs | 200 | two-bone IK, the reach that leans, the forearm's twist, twist joints |+ | raea-sys-body | src/limits.rs | 260 | joint ranges as anatomical angles, a turn brought inside, violations |+ | raea-sys-body | src/fit.rs | 120 | a pose fitted to points seen |+ | raea-sys-body | src/prior.rs | 150 | the hand prior: shapes, coefficients, oddness |+ | raea-sys-grab | src/shape.rs | 120 | solids as signed distances: casts, normals, clearance |+ | raea-sys-grab | src/hand.rs | 200 | holds, the wrist that lays a palm on one, the fingers' curl |+ | raea-sys-grab | src/trunk.rs | 130 | stoop, look, clearances, where to stand |+ | raea-sys-grab | src/interact.rs | 40 | which thing is taken |+ | raea-sys-grab | src/take.rs | 280 | the take's timeline |+ | raea-sys-grab | src/json.rs | 190 | character.take, character.fit, character.hand |+ | raea-sys-grab | tests/grab.rs | 470 | the hands' measures, on the stand-in body |+ | raea-sys-grab | tests/body.rs | 150 | limits, the body out of solids, the hand prior |+ | raea-sys-grab | examples/strip.rs | 90 | a take drawn as an SVG filmstrip |+ | sdk | sdk/character/src/take.ts | 120 | take(), fitPose(), handShape(): the calls made, typed |+@doneScenario: HG1. An arm reaches a target, and says what it cost- # 11-14, built: systems/grab arm.rs. On the stand-in body, 600 random targets inside the arm's reach are hit+ # 11-14, built: raea-sys-body arm.rs. On the stand-in body, 600 random targets inside the arm's reach are hit# within 0.1 mm; a target 20 cm past the arm is missed by 20 cm and flagged; a wrist already on its target# turns nothing; the pole puts the elbow on its side of the line within a degree; a reach 12 cm past the arm# lands within 5 mm by leaning the clavicle, chest and spine, each under its cap, and names them.@@ -58,10 +79,6 @@ Feature: Procedural arms and hands: a character reaches for, takes, holds, carriwhere the elbow pointsAnd past the arm's length the trunk leans, by capped shares, and the report names every joint turnedAnd a wrist's twist is shared with the forearm, the hand staying where it was- And the plan:- | crate | file | lines | job |- | raea-sys-grab | src/rig.rs | 210 | the rig, poses, forward kinematics, a stand-in body |- | raea-sys-grab | src/arm.rs | 180 | two-bone IK, the reach that leans, the forearm's twist |@doneScenario: HG2. Hold points are found on the thing itself@@ -74,10 +91,6 @@ Feature: Procedural arms and hands: a character reaches for, takes, holds, carrifrom that side meets its surface, each with the way the surface facesAnd a narrower thing gets one hand's holdAnd the holds are kept in the thing's own frame, so they ride with it- And the plan:- | crate | file | lines | job |- | raea-sys-grab | src/shape.rs | 120 | solids as signed distances: casts, normals, clearance |- | raea-sys-grab | src/hand.rs | 220 | holds, the wrist that lays a palm on one, the fingers' curl |@doneScenario: HG3. Fingers wrap what they hold@@ -104,11 +117,6 @@ Feature: Procedural arms and hands: a character reaches for, takes, holds, carriAnd the thing is drawn to a carry place off the chest and rides there, turned only with the body's facingAnd a put sets it down at a place, a throw lets it go with a velocity and it falls to the floorAnd every frame says how far a wrist missed and how far the body was turned from its own motion- And the plan:- | crate | file | lines | job |- | raea-sys-grab | src/take.rs | 210 | the take's timeline |- | raea-sys-grab | tests/grab.rs | 290 | the measures above, on the stand-in body |- | raea-sys-grab | examples/strip.rs | 90 | a take drawn as an SVG filmstrip |@doneScenario: HG5. A character in a scene takes a thing@@ -124,14 +132,10 @@ Feature: Procedural arms and hands: a character reaches for, takes, holds, carriThen the engine works out each frame's pose and the thing's place, in a render and in live play alikeAnd TypeScript reaches it as one native call (core/calls), typed, with the report per frameAnd the body's own motion is whatever the character was playing- And the plan:- | crate | file | lines | job |- | raea-sys-grab | src/json.rs | 120 | a frame of a take asked for as JSON |- | sdk | sdk/character/src/take.ts | 80 | take(): the call made, typed |@doneScenario: HG6a. Hands stay out of the scene's solids- # 11-14, built: body.rs `clear`, a take's `avoid` list. A wrist's place is moved the least that keeps the+ # 11-14, built: trunk.rs `clear`, a take's `avoid` list. A wrist's place is moved the least that keeps the# wrist, the palm and the fingers' reach 2 cm clear of every solid named; the wrist's path arcs up 6 cm and# leaves a hold backing off its surface. With a table under a cup, no point of the hand is in the table at# any frame of the take, and keeping clear costs the hold under 6 mm. Seen on turbo: the hand comes over the@@ -141,7 +145,7 @@ Feature: Procedural arms and hands: a character reaches for, takes, holds, carri@doneScenario: HG7a. A low thing is taken by bending, the feet planted; and the body is told where to stand- # 11-14, built: body.rs `stoop` and `stand_for`. For hands that must go lower than 0.7 of an arm below the+ # 11-14, built: trunk.rs `stoop` and `stand_for`. For hands that must go lower than 0.7 of an arm below the# shoulders, the hips come down and the trunk bends at the hips and along the spine, by as much as the hands have got along their reach, so the body rises again as the thing is# lifted. Leg IK keeps both ankles where they stood within 5 mm and the feet's turn. A box on the floor is# held within 2 cm; the hips come down over 30 cm and are back up with the box carried. `stand_for` gives@@ -164,7 +168,7 @@ Feature: Procedural arms and hands: a character reaches for, takes, holds, carriScenario: HG5a. The rest of both sources, in Rust# 11-14, built. From Ik-Object-Holding: its Interactor is interact.rs `pick` (the nearest thing in a radius# that the eyes see past the scene's solids; the original takes the first collider found), and its head aim- # is body.rs `look` (neck two fifths, head the rest, 55 degrees at most), on through a take: the eyes go to+ # is trunk.rs `look` (neck two fifths, head the rest, 55 degrees at most), on through a take: the eyes go to# the thing as the hands do. With HG2 and HG4 that is every script of the original that isn't Unity input or# animator glue. From SOMA-X: fit.rs `fit` is the analytical pass of its pose inversion on marks instead# of mesh vertices (joints refitted parents first, each aligned to what it carries; the root on its own@@ -187,7 +191,7 @@ Feature: Procedural arms and hands: a character reaches for, takes, holds, carri# 11-14, built. limits.rs is sdk/body's axes.ts and limits.ts in Rust: each joint's turn read as flex, side# and twist from the rest pose, the same ranges (13 roles, the right side mirrored), a turn brought inside# them, a pose's violations. Through a take every joint of both arms is inside its range and a frame that- # had to hold one says so (`limited`). body.rs `roomy`: when the solved pose puts the head's top, the neck+ # had to hold one says so (`limited`). trunk.rs `roomy`: when the solved pose puts the head's top, the neck# or the chest within 9 cm of a solid in a take's `avoid`, the take is solved again with less bend and# lean and more squat (to 0.82 m of hips), a sixth at a time. With a table 38 cm in front and a box on the# floor between, none of the three is in the table at any frame and the hold is kept within 5 cm; with no@@ -198,7 +202,7 @@ Feature: Procedural arms and hands: a character reaches for, takes, holds, carri@doneScenario: HG5b. SOMA-X's hand prior on raea's fingers- # 11-14, built. prior.rs and data/soma_hand_prior.bin (12 KB; data/README.md has its source and licence):+ # 11-14, built. raea-sys-body prior.rs and data/soma_hand_prior.bin (12 KB; data/README.md has its source and licence):# the left hand's 32-component model of real hand poses, cut to the fifteen finger joints raea has (the# metacarpals and fingertip ends left out; 99% of the first component is on the kept joints). SOMA's# turns are from its flat bind hand in the wrist's axes (fingers along +x, palm +z); each raea finger bonediff --git a/systems/body/Cargo.toml b/systems/body/Cargo.tomlnew file mode 100644index 00000000..8a676513--- /dev/null+++ b/systems/body/Cargo.toml@@ -0,0 +1,12 @@+[package]+name = "raea-sys-body"+version = "0.1.0"+edition = "2024"+license = "FSL-1.1-ALv2"+publish = false+description = "The character's body in Rust (docs/hands.feature), as sdk/body has it in TypeScript: the game_engine rig, poses and forward kinematics, arm and leg IK that reports what it changed, joint limits, a pose fitted to points seen, and a model of real hand poses"++[dependencies]+# the glam Bevy 0.20 uses, so a pose passes to the engine as it is+glam = "0.33"+serde_json = "1"diff --git a/systems/grab/data/README.md b/systems/body/data/README.mdsimilarity index 100%rename from systems/grab/data/README.mdrename to systems/body/data/README.mddiff --git a/systems/grab/data/soma_hand_prior.bin b/systems/body/data/soma_hand_prior.binsimilarity index 100%rename from systems/grab/data/soma_hand_prior.binrename to systems/body/data/soma_hand_prior.bindiff --git a/systems/grab/src/fit.rs b/systems/body/src/fit.rssimilarity index 100%rename from systems/grab/src/fit.rsrename to systems/body/src/fit.rsdiff --git a/systems/body/src/lib.rs b/systems/body/src/lib.rsnew file mode 100644index 00000000..59e1cb17--- /dev/null+++ b/systems/body/src/lib.rs@@ -0,0 +1,20 @@+//! The character's body in Rust (docs/hands.feature): what sdk/body is in TypeScript, for the engine. Plain maths on+//! glam, no engine.+//!+//! - `rig`: the game_engine skeleton, poses, forward kinematics, a hand's frame, and a stand-in body.+//! - `arm`: two-bone IK with a pole, a reach that leans the trunk, the wrist's twist shared with the forearm, and+//! SOMA-X's twist joints.+//! - `limits`: each joint's range as anatomical angles (sdk/body's), a turn brought inside it, a pose's violations.+//! - `fit`: a pose fitted to points seen (SOMA-X's analytical pose inversion), for motion that arrives as positions.+//! - `prior`: SOMA-X's hand pose prior on raea's fingers: a hand's shape from a few numbers, and how odd a hand is.++pub mod arm;+pub mod fit;+pub mod limits;+pub mod prior;+pub mod rig;++pub use arm::{ArmOptions, IkReport, forearm_twist, reach, twist_joints, two_bone};+pub use fit::{Mark, fit, marks_of};+pub use limits::{Angles, angles_of, clamp_turn, violations};+pub use rig::{HandRest, Pose, Posed, Side, Skeleton, hand_rest, mannequin};diff --git a/systems/grab/src/limits.rs b/systems/body/src/limits.rssimilarity index 100%rename from systems/grab/src/limits.rsrename to systems/body/src/limits.rsdiff --git a/systems/grab/src/prior.rs b/systems/body/src/prior.rssimilarity index 98%rename from systems/grab/src/prior.rsrename to systems/body/src/prior.rsindex 287276b9..2db77f55 100644--- a/systems/grab/src/prior.rs+++ b/systems/body/src/prior.rs@@ -9,8 +9,7 @@ use std::sync::OnceLock;use glam::{Mat3, Quat, Vec3};-use crate::hand::hand_rest;-use crate::rig::{FINGERS, Pose, Side, Skeleton};+use crate::rig::{FINGERS, Pose, Side, Skeleton, hand_rest};const JOINTS: usize = 15;const DIMS: usize = JOINTS * 3;diff --git a/systems/grab/src/rig.rs b/systems/body/src/rig.rssimilarity index 90%rename from systems/grab/src/rig.rsrename to systems/body/src/rig.rsindex c0ce4f38..c6010698 100644--- a/systems/grab/src/rig.rs+++ b/systems/body/src/rig.rs@@ -144,6 +144,28 @@ impl Skeleton {}}+/// A hand's frame at rest, in the body's axes: along (wrist to the middle knuckle), the way the palm faces, and where+/// the palm's skin is from the wrist.+#[derive(Clone, Copy, Debug)]+pub struct HandRest {+ pub along: Vec3,+ pub palm: Vec3,+ pub mid: Vec3,+}++pub fn hand_rest(skel: &Skeleton, s: Side) -> Option<HandRest> {+ let hand = skel.arm(s)?[2];+ let knuckle = |f: &str| Some(skel.joints[skel.finger(f, s)?[0]].head);+ let h = skel.joints[hand].head;+ let reach = knuckle("middle")? - h;+ let along = reach.normalize();+ let line = knuckle("index")? - knuckle("pinky")?;+ let across = (line - along * line.dot(along)).normalize();+ let palm = if s == Side::L { along.cross(across) } else { across.cross(along) };+ // the palm's middle: a little over half way to the knuckles, out to the skin+ Some(HandRest { along, palm, mid: reach * 0.55 + palm * 0.012 })+}+/// A stand-in body of the rig's joints at an adult's proportions (1.81 m), so the solvers run with no character on/// disk: tests, examples, and a scene that hasn't loaded its body yet. A real character brings its own skeleton.json.pub fn mannequin() -> Skeleton {diff --git a/systems/grab/Cargo.toml b/systems/grab/Cargo.tomlindex 5c3d9b26..f7e0c861 100644--- a/systems/grab/Cargo.toml+++ b/systems/grab/Cargo.toml@@ -7,6 +7,8 @@ publish = falsedescription = "Procedural arms and hands (docs/hands.feature): a body reaches for a thing, takes it with one hand or two, carries it and throws it. Arm IK, hold points found on the thing's shape, fingers curled onto it, all as a function of time"[dependencies]+# the rig, IK, limits, pose fitting and the hand prior+raea-sys-body = { path = "../body" }# the glam Bevy 0.20 uses, so a pose passes to the engine as it isglam = "0.33"serde_json = "1"diff --git a/systems/grab/examples/strip.rs b/systems/grab/examples/strip.rsindex cad51768..f5716ffd 100644--- a/systems/grab/examples/strip.rs+++ b/systems/grab/examples/strip.rs@@ -6,6 +6,7 @@use std::fmt::Write;use glam::{Quat, Vec3};+use raea_sys_body::*;use raea_sys_grab::*;/// a point of the body's frame on the page: turned about the vertical by `yaw`, y updiff --git a/systems/grab/src/hand.rs b/systems/grab/src/hand.rsindex 239d56ce..d0df2106 100644--- a/systems/grab/src/hand.rs+++ b/systems/grab/src/hand.rs@@ -6,7 +6,7 @@use glam::{Mat3, Quat, Vec3};-use crate::rig::{Side, Skeleton};+use raea_sys_body::rig::{Side, Skeleton, hand_rest};use crate::shape::Thing;/// where one hand holds a thing, in the thing's own frame@@ -72,28 +72,6 @@ pub fn find_holds(thing: &Thing, holder: Vec3, o: HoldOptions) -> Grip {if (l.at - r.at).length() <= o.span { Grip::One(if o.hand == Side::L { l } else { r }) } else { Grip::Two(l, r) }}-/// A hand's frame at rest, in the body's axes: along (wrist to the middle knuckle), the way the palm faces, and where-/// the palm's skin is from the wrist.-#[derive(Clone, Copy, Debug)]-pub struct HandRest {- pub along: Vec3,- pub palm: Vec3,- pub mid: Vec3,-}--pub fn hand_rest(skel: &Skeleton, s: Side) -> Option<HandRest> {- let hand = skel.arm(s)?[2];- let knuckle = |f: &str| Some(skel.joints[skel.finger(f, s)?[0]].head);- let h = skel.joints[hand].head;- let reach = knuckle("middle")? - h;- let along = reach.normalize();- let line = knuckle("index")? - knuckle("pinky")?;- let across = (line - along * line.dot(along)).normalize();- let palm = if s == Side::L { along.cross(across) } else { across.cross(along) };- // the palm's middle: a little over half way to the knuckles, out to the skin- Some(HandRest { along, palm, mid: reach * 0.55 + palm * 0.012 })-}-/// The wrist's place and the hand's turn that lay the palm on a hold: the palm against the surface, the fingers/// pointing the way the holder faces, as near as the surface lets them.pub fn wrist_for(skel: &Skeleton, thing: &Thing, hold: &Hold, facing: Vec3) -> Option<(Vec3, Quat)> {@@ -130,7 +108,7 @@ pub fn curl(skel: &Skeleton, turns: &mut [Quat], wrist: (Vec3, Quat), s: Side, tlet hand = skel.arm(s)?[2];let rest = hand_rest(skel, s)?;let mut touch = Touch::default();- for (n, name) in crate::rig::FINGERS.iter().enumerate() {+ for (n, name) in raea_sys_body::rig::FINGERS.iter().enumerate() {let js = skel.finger(name, s)?;let (thumb, thick) = (n == 0, if n == 0 { 0.010 } else { 0.008 });// the axis each joint bends about, at rest: the one that carries its bone toward the palm's side (the thumb's,diff --git a/systems/grab/src/json.rs b/systems/grab/src/json.rsindex 2ed9d97c..498e2240 100644--- a/systems/grab/src/json.rs+++ b/systems/grab/src/json.rs@@ -5,11 +5,11 @@use glam::{Quat, Vec3};use serde_json::{Value, json};-use crate::body::stand_for;-use crate::fit::{Mark, fit};-use crate::prior::{coefficients, oddness, shape};+use crate::trunk::stand_for;+use raea_sys_body::fit::{Mark, fit};+use raea_sys_body::prior::{coefficients, oddness, shape};use crate::hand::{Grip, HoldOptions, find_holds};-use crate::rig::{Pose, Side, Skeleton};+use raea_sys_body::rig::{Pose, Side, Skeleton};use crate::shape::{Solid, Thing};use crate::take::{Release, Take, perform};diff --git a/systems/grab/src/lib.rs b/systems/grab/src/lib.rsindex e19d0f2c..9196fe17 100644--- a/systems/grab/src/lib.rs+++ b/systems/grab/src/lib.rs@@ -1,39 +1,27 @@//! Procedural arms and hands (docs/hands.feature): a body reaches for a thing, takes it with one hand or two, carries-//! it, and puts it down or throws it, with no capture of that action. Plain maths on glam, no engine: `perform` is a-//! function of time, so a render and live play ask it the same question and get the same frame.+//! it, and puts it down or throws it, with no capture of that action. Plain maths on glam and raea-sys-body (the+//! rig, IK, limits), no engine: `perform` is a function of time, so a render and live play ask it the same question+//! and get the same frame.//!-//! - `rig`: the game_engine skeleton, poses, forward kinematics (sdk/body's, in Rust), and a stand-in body.-//! - `arm`: two-bone IK with a pole, a reach that leans the trunk, and the wrist's twist shared with the forearm.//! - `shape`: a thing as a signed distance: ray casts, normals, clearance.//! - `hand`: hold points found on the thing, the wrist that lays a palm on one, fingers curled onto the surface.-//! - `body`: the body bent and squatted for a low thing with its feet planted, hands kept out of the scene's solids,-//! and where to stand to take a thing.-//! - `fit`: a pose fitted to points seen (SOMA-X's analytical pose inversion), for motion that arrives as positions.+//! - `trunk`: the body bent and squatted for a low thing with its feet planted, the head turned to the thing, hands+//! and head kept out of the scene's solids, and where to stand to take a thing.//! - `interact`: which thing a body takes: the nearest in reach that its eyes see.-//! - `limits`: each joint's range as anatomical angles (sdk/body's), a turn brought inside it, a pose's violations.-//! - `prior`: SOMA-X's hand pose prior on raea's fingers: a hand's shape from a few numbers, and how odd a hand is.//! - `take`: reach, grab, lift, carry, put down or throw, as one timeline.-//! - `json`: a take asked for as JSON, the engine's native call `character.take` (raea/character's `take`).+//! - `json`: takes, fitted poses and hand shapes asked for as JSON: the engine's native calls character.take,+//! character.fit and character.hand (raea/character's take, fitPose and handShape).-pub mod arm;-pub mod body;-pub mod fit;pub mod hand;pub mod interact;pub mod json;-pub mod limits;-pub mod prior;-pub mod rig;pub mod shape;pub mod take;+pub mod trunk;-pub use arm::{ArmOptions, IkReport, forearm_twist, reach, twist_joints, two_bone};-pub use json::{FIT_ANSWER, FIT_ARGS, HAND_ANSWER, HAND_ARGS, TAKE_ANSWER, TAKE_ARGS, fit_json, hand_json, take_json};-pub use body::{clear, look, roomy, stand_for, stoop};-pub use fit::{Mark, fit, marks_of};-pub use interact::pick;pub use hand::{Grip, Hold, HoldOptions, Touch, curl, find_holds, wrist_for};-pub use limits::{Angles, angles_of, clamp_turn, violations};-pub use rig::{Pose, Posed, Side, Skeleton, mannequin};+pub use interact::pick;+pub use json::{FIT_ANSWER, FIT_ARGS, HAND_ANSWER, HAND_ARGS, TAKE_ANSWER, TAKE_ARGS, fit_json, hand_json, take_json};pub use shape::{Solid, Thing};pub use take::{Frame, Phase, Release, Take, perform};+pub use trunk::{clear, look, roomy, stand_for, stoop};diff --git a/systems/grab/src/take.rs b/systems/grab/src/take.rsindex 2549fbcf..bf95d9a1 100644--- a/systems/grab/src/take.rs+++ b/systems/grab/src/take.rs@@ -8,12 +8,13 @@use glam::{Quat, Vec3};-use crate::arm::{ArmOptions, forearm_twist, reach};-use crate::body::{clear, look, roomy, stoop};-use crate::limits::clamp_turn;-use crate::prior::shape;-use crate::hand::{Grip, Touch, curl, facing, hand_rest, wrist_for};-use crate::rig::{Pose, Posed, Skeleton};+use raea_sys_body::arm::{ArmOptions, forearm_twist, reach};+use crate::trunk::{clear, look, roomy, stoop};+use raea_sys_body::limits::clamp_turn;+use raea_sys_body::prior::shape;+use crate::hand::{Grip, Touch, curl, facing, wrist_for};+use raea_sys_body::rig::hand_rest;+use raea_sys_body::rig::{Pose, Posed, Skeleton};use crate::shape::Thing;#[derive(Clone, Copy, Debug)]diff --git a/systems/grab/src/body.rs b/systems/grab/src/trunk.rssimilarity index 97%rename from systems/grab/src/body.rsrename to systems/grab/src/trunk.rsindex d3d7e2d4..448bd566 100644--- a/systems/grab/src/body.rs+++ b/systems/grab/src/trunk.rs@@ -7,9 +7,9 @@use glam::{Quat, Vec3};-use crate::arm::{ArmOptions, two_bone};-use crate::hand::HandRest;-use crate::rig::{Pose, Posed, Side, Skeleton};+use raea_sys_body::arm::{ArmOptions, two_bone};+use raea_sys_body::rig::HandRest;+use raea_sys_body::rig::{Pose, Posed, Side, Skeleton};use crate::shape::Thing;/// how far below the shoulders, in arm lengths, the hands go before the body bends for themdiff --git a/systems/grab/tests/body.rs b/systems/grab/tests/body.rsindex e95c678e..a88e7c22 100644--- a/systems/grab/tests/body.rs+++ b/systems/grab/tests/body.rs@@ -1,6 +1,7 @@//! The measures docs/hands.feature names for the body round the hands: joint limits, and keeping out of solids.use glam::{Quat, Vec3};+use raea_sys_body::*;use raea_sys_grab::*;#[test]@@ -82,8 +83,7 @@ fn the_head_and_chest_stay_out_of_a_table_when_the_body_bends() {#[test]fn the_hand_prior_shapes_and_reads_hands() {- use raea_sys_grab::hand::hand_rest;- use raea_sys_grab::prior::{coefficients, oddness, shape};+ use raea_sys_body::prior::{coefficients, oddness, shape};let s = mannequin();for side in Side::BOTH {let rest = hand_rest(&s, side).unwrap();diff --git a/systems/grab/tests/grab.rs b/systems/grab/tests/grab.rsindex 084a997f..968752af 100644--- a/systems/grab/tests/grab.rs+++ b/systems/grab/tests/grab.rs@@ -1,8 +1,8 @@//! The measures docs/hands.feature names, on the stand-in body.use glam::{Quat, Vec3};-use raea_sys_grab::hand::hand_rest;-use raea_sys_grab::rig::Posed;+use raea_sys_body::rig::Posed;+use raea_sys_body::*;use raea_sys_grab::*;/// a seeded random in [0, 1) (mulberry32, as sdk/body's tests use)diff --git a/tools/layers.toml b/tools/layers.tomlindex fc93f76d..a52c034c 100644--- a/tools/layers.toml+++ b/tools/layers.toml@@ -100,6 +100,7 @@ raea-sys-page-net = "systems"raea-sys-page-ops = "systems"raea-sys-frame = "systems"raea-sys-hold = "systems"+raea-sys-body = "systems"raea-sys-grab = "systems"raea-sys-splat = "systems"raea-sys-sprite = "systems"