API ReferenceGE Extensionsflowgraphnodesscenecamera
Camera Transform (Flowgraph Node)
- **Node Name:** `Camera Transform`
Overview
- Node Name:
Camera Transform - Category:
repeat_instant - File:
extensions/flowgraph/nodes/scene/camera/cameraAngle.lua - Icon: Camera icon
- Color: Camera color
Outputs the current camera position, rotation, and field of view each frame.
Pin Schema
Input Pins
None.
Output Pins
| Pin | Type | Description |
|---|---|---|
pos | vec3 | Current camera position |
rot | quat | Current camera rotation |
fov | number | Current field of view (degrees) |
Internals
- Uses
core_camera.getFovDeg(),core_camera.getPosition(),core_camera.getQuat(). - Optimizes by checking
isUsed()onposandrotpins - only computes them if connected.
How It Works
- Every frame, reads the current FOV and outputs it.
- If the
posoutput is connected, reads the camera position as a table. - If the
rotoutput is connected, reads the camera quaternion as a table.
Lua Code Example
-- Feed camera data into a recording node:
-- cameraAngle.pos → recordCamera.pos
-- cameraAngle.rot → recordCamera.rot
-- cameraAngle.fov → UI overlay displayKey Dependencies
core_camera-getFovDeg(),getPosition(),getQuat()
Additional Methods
C:init()
Initializes the node, setting up pins and default properties.
C:work()
Main work function called each frame/tick when the node is active.
See Also
- Camera Look at Position (Flowgraph Node) - Related reference
- Camera Auto Circle (Flowgraph Node) - Related reference
- Simple Cam Path (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide