cocos_add_capsule_collider_3d
Add a capsule-shaped collision component to 3D nodes in Cocos Creator for physics interactions, with customizable dimensions, orientation, and trigger settings.
Instructions
Attach cc.CapsuleCollider. direction: 0=X, 1=Y (default), 2=Z.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| radius | No | ||
| cylinder_height | No | ||
| direction | No | ||
| center_x | No | ||
| center_y | No | ||
| center_z | No | ||
| is_trigger | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |