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.
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 |