API ReferenceGE ExtensionscorecameraModes
Camera Mode: Autopoint
Filter camera that smoothly adjusts the camera's look-at target to a local offset on the vehicle. Used by external/fan cameras to track specific vehicle nodes.
Filter camera that smoothly adjusts the camera's look-at target to a local offset on the vehicle. Used by external/fan cameras to track specific vehicle nodes.
Class API
| Method | Signature | Description |
|---|---|---|
C:init | () | Initializes as hidden filter; sets spring(5,1) |
C:setSpring | (rate, accel) | Configures sigmoid smoothing for offset tracking |
C:setRefNodes | (center, left, back) | Sets vehicle reference node IDs |
C:update | (data) | Transforms local offset to world space, points camera at target |
Properties
| Property | Type | Description |
|---|---|---|
isFilter | boolean | Always true - modifies existing camera output |
hidden | boolean | Always true - not user-selectable |
localOffset | vec3 | Vehicle-local offset to look at |
refNodes | table | {ref, left, back} node IDs |
How It Works
- Reads vehicle ref/left/back node positions to build a local coordinate frame (nx, ny, nz)
- Smoothly interpolates
localOffsetusing temporal sigmoid smoothing - Converts smoothed offset from local to world space
- Adds to
data.res.targetPosand setsdata.res.rotto look at the new target
Usage Examples
-- Created internally by camera system
local autopoint = require('core/cameraModes/autopoint')()
autopoint:setRefNodes(refId, leftId, backId)
autopoint.localOffset = vec3(0.5, -1, 0.3) -- look at a specific part
autopoint:setSpring(100, 5) -- fast trackingWindows Console
Provides the backend for the Windows debug console window, routing commands to different execution contexts (GE Lua, TorqueScript, CEF/JS, vehicle Lua).
Camera Mode: Autozoom
Filter camera that automatically adjusts FOV based on distance to target. Uses discrete zoom steps with smooth transitions, plus user zoom override via numpad 9/3.