manage_physics_settings
Auto-generated from the Python tool registry. Do not hand-edit outside
<!-- examples:start --><!-- examples:end -->blocks — the generator (tools/generate_docs_reference.py) will overwrite them.
Group: physics · Module: services.registry.capability_adapter
Maturity: stable (support status; independent of enabled state, readiness and permissions).
Description
Inspect or change 2D/3D physics settings and layer collision rules.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | Literal['ping', 'get_settings', 'set_settings', 'get_collision_matrix', 'set_collision_matrix'] | yes | Feature action to perform. |
dimension | str | None | — | Physics dimension: '3d' (default) or '2d'. |
settings | dict[str, Any] | None | — | Key-value settings for set_settings. |
layer_a | str | None | — | Layer name or index for collision matrix. |
layer_b | str | None | — | Layer name or index for collision matrix. |
collide | bool | None | — | Whether layers should collide (set_collision_matrix). |
unity_instance | str | int | None | — | Target Unity instance for this call: Name@hash or hash prefix; an integer selects only that exact port over stdio and is rejected over HTTP. Read mcpforunity://instances for available targets. Omit to use the legacy active selection or the sole available instance. |
Returns
A dict containing the Unity response. The exact shape depends on the action.
Examples
Read the current 3D collision matrix before debugging why colliders on two layers ignore one another.
MCP arguments
{
"action": "get_collision_matrix",
"dimension": "3d"
}