cocos_set_node_rotation
Set 2D rotation angle for nodes in Cocos Creator scenes to adjust object orientation during game development.
Instructions
Set 2D rotation (euler Z) in degrees.
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>",
"angle_z": "<angle_z>"
},
"name": "cocos_set_node_rotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| angle_z | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |