set_physics_material
Apply physics material properties such as friction, bounce, roughness, and absorbency to a node to control collision behavior.
Instructions
Create and set a physics material on a node
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Node path in the scene tree (e.g. 'Player/Sprite2D'). Use just the node name for root-level children (e.g. 'Player'), or empty string '' for the scene root itself. Paths are relative to the currently open scene. | |
| rough | No | Whether surface is rough | |
| bounce | No | Bounce/Restitution coefficient | |
| friction | No | Friction coefficient | |
| absorbent | No | Whether the surface absorbs impact energy |