set_gravity
Need to customize physics gravity? Set the default gravity vector for the 2D/3D world by specifying X, Y, and optional Z components.
Instructions
Set the default gravity vector for the physics world
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": {
"x": "<x>",
"y": "<y>"
},
"name": "set_gravity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Gravity X component | |
| y | Yes | Gravity Y component | |
| z | No | Gravity Z component (for 3D, default 0) |