Skip to main content

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​

NameTypeRequiredDescription
actionLiteral['ping', 'get_settings', 'set_settings', 'get_collision_matrix', 'set_collision_matrix']yesFeature action to perform.
dimensionstr | None—Physics dimension: '3d' (default) or '2d'.
settingsdict[str, Any] | None—Key-value settings for set_settings.
layer_astr | None—Layer name or index for collision matrix.
layer_bstr | None—Layer name or index for collision matrix.
collidebool | None—Whether layers should collide (set_collision_matrix).
unity_instancestr | 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"
}