inject_lookat_tracking
Create a GDScript that makes a Camera3D track a target node every frame using smooth slerp interpolation, replacing manual setup with automated camera tracking.
Instructions
Tracking & LookAt Injector: Generate a GDScript that procedurally tracks a target node's transform vector every frame, with smooth slerp interpolation.
Args: scene_path: Absolute path to the .tscn scene file. camera_node_path: NodePath of the Camera3D to control. target_node_path: NodePath of the node to track (e.g. 'Player/Body'). script_output_path: Where to write the .gd script. Empty = next to scene file.
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>",
"camera_node_path": "<camera_node_path>",
"target_node_path": "<target_node_path>"
},
"name": "inject_lookat_tracking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| camera_node_path | Yes | ||
| target_node_path | Yes | ||
| script_output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |