game_terrain
Create terrain meshes from heightmap arrays and modify them by adjusting height, painting vertex colors, or querying height at positions.
Instructions
Create/modify terrain meshes from heightmap data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position (for modify/get_height/paint) | |
| z | No | Z position (for modify/get_height/paint) | |
| name | No | Node name | |
| color | No | Vertex color {r,g,b,a} (for paint) | |
| depth | No | Terrain depth in vertices | |
| width | No | Terrain width in vertices | |
| action | Yes | Action: create, modify, get_height, paint | |
| radius | No | Brush radius (for modify/paint) | |
| nodePath | No | Terrain node path | |
| maxHeight | No | Maximum terrain height | |
| heightData | No | Array of float height values (for create) | |
| parentPath | No | Parent node path | |
| heightDelta | No | Height change amount (for modify) |