physics_bounce
Simulate physically accurate object bouncing on an OpenToonz layer or peg using gravity parabolas, material-based restitution, squash, and horizontal travel for animated drops and rebounds.
Instructions
Physically exact bouncing (gravity parabolas, coefficient of restitution) on a layer/peg. The drawing must rest on the ground line; y offsets go UP from there. height px. fall_frames: frames for the first drop (default: real gravity for a 1.7 m character = 1080 px tall, i.e. 14.1*sqrt(height/1080)). material: rubber_ball | table_tennis | basketball | tennis | soft_rubber | bowling | balloon (sets restitution and squash). travel_x: px moved over the whole bounce, slowing with each contact. squash: area-preserving contact squash (set_pivot at the feet first).
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": {
"scene": "<scene>",
"target": "<target>",
"start": "<start>",
"height": "<height>"
},
"name": "physics_bounce"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | Yes | ||
| start | Yes | ||
| height | Yes | ||
| squash | No | ||
| target | Yes | ||
| bounces | No | ||
| material | No | rubber_ball | |
| travel_x | No | ||
| fall_frames | No | ||
| start_on_ground | No |