breakable_joint2d
What snaps the node's joint2d: past either, it breaks and calls on_joint_break. An articulation never breaks, so this sits beside a joint that is not one.
本页内容
2d · physics · 2 properties · 2D
What snaps the node's joint2d: past either, it breaks and calls on_joint_break. An articulation never breaks, so this sits beside a joint that is not one.
In a scene, breakable_joint2d is the node key that applies it. A script reaches each property below as a field on node.breakable_joint2d: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.breakable_joint2d.get() and node.breakable_joint2d.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
break_force |
float | 0 |
The force, in newtons, that snaps the joint; 0 never breaks it by force At least 0. |
break_torque |
float | 0 |
The torque about the anchor, in newton metres, that snaps the joint; 0 never breaks it by torque At least 0. |