cocos_add_terrain_collider_3d
Add terrain collision detection to 3D game objects in Cocos Creator by attaching a TerrainCollider component with configurable physics properties.
Instructions
Attach cc.TerrainCollider (pass a cc.Terrain asset UUID).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scene_path": "<scene_path>",
"node_id": "<node_id>"
},
"name": "cocos_add_terrain_collider_3d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| terrain_uuid | No | ||
| center_x | No | ||
| center_y | No | ||
| center_z | No | ||
| is_trigger | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |