cocos_add_fixed_joint_2d
Attach a fixed joint to rigidly connect two physics bodies in Cocos Creator, creating breakable structures with configurable anchor points and joint properties.
Instructions
Attach cc.FixedJoint2D — rigidly fuses two bodies (breakable structures).
Named "weld" in Box2D; replaces the prior cocos_add_weld_joint2d
which emitted cc.WeldJoint2D (not a real 3.8 class).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| connected_body_id | No | ||
| anchor_x | No | ||
| anchor_y | No | ||
| connected_anchor_x | No | ||
| connected_anchor_y | No | ||
| angle | No | ||
| frequency | No | ||
| damping_ratio | No | ||
| collide_connected | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |