game_physics_body
game_physics_bodySet physics body properties like mass, velocity, damping, and friction on a Godot node. Adjust gravity scale, freeze, or put the body to sleep.
Instructions
Configure physics body properties (mass, velocity, etc.)
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": {
"nodePath": "<nodePath>"
},
"name": "game_physics_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mass | No | Body mass | |
| bounce | No | Physics material bounce | |
| freeze | No | Freeze the body | |
| friction | No | Physics material friction | |
| nodePath | Yes | Path to physics body node | |
| sleeping | No | Put body to sleep | |
| linearDamp | No | Linear damping | |
| angularDamp | No | Angular damping | |
| gravityScale | No | Gravity scale | |
| linearVelocity | No | Linear velocity {x,y} or {x,y,z} | |
| angularVelocity | No | Angular velocity (float for 2D, {x,y,z} for 3D) |