cocos_add_plane_collider_3d
Add a plane collider to 3D game objects in Cocos Creator for physics interactions. Configure infinite planes with custom normals and positions to create ground surfaces or boundaries.
Instructions
Attach cc.PlaneCollider — infinite plane, typically used for the ground.
Default normal (0, 1, 0) + constant 0 means the XZ plane at y=0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| normal_x | No | ||
| normal_y | No | ||
| normal_z | No | ||
| constant | No | ||
| center_x | No | ||
| center_y | No | ||
| center_z | No | ||
| is_trigger | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |