physics_plan
Generate physically timed keyframes for jumps, tosses, drops, and bounces to paste into a spec, with gravity scaled to figure height so air time matches the motion.
Instructions
Physically timed keyframes to paste into a spec: jump (crouch, take off, arc, land, recover), toss (a prop leaves a hand and flies to a point), drop (a fall from rest) and bounce (a ball losing energy each bounce). Gravity is scaled to the figures, so air time matches the height. Merge other figures' changes into the returned keyframes rather than adding keyframes between them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>",
"figure": "<figure>"
},
"name": "physics_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | jump/drop/bounce: starting x | |
| y | No | bounce: starting centre y | |
| to | No | toss: {x,y} landing point; drop: landing y | |
| fps | No | ||
| flip | No | ||
| from | No | toss: {x,y} release point; drop: starting y | |
| kind | Yes | ||
| peak | No | toss: px above the higher end | |
| rest | No | bounce: centre y when touching the floor (floor top − radius) | |
| spin | No | toss: degrees of rotation in flight | |
| drift | No | bounce: px travelled sideways per bounce | |
| scale | No | Scale of the stickmen in the scene (default 1.2); sets the strength of gravity | |
| figure | Yes | Cast id that moves | |
| ground | No | jump: the floor y the stickman stands on | |
| height | No | jump: how high the feet rise, px (40–120 for a person) | |
| bounces | No | ||
| distance | No | jump: horizontal travel, px | |
| restitution | No | bounce: 0.5–0.7 ball, 0.2 bag, 0.8 rubber |