API ReferenceGE ExtensionseditorvehicleEditorliveEditor
General Data
Live editor app displaying real-time vehicle telemetry: position, rotation, velocity, acceleration, airspeed, ground speed, environmental conditions, and damage.
Live editor app displaying real-time vehicle telemetry: position, rotation, velocity, acceleration, airspeed, ground speed, environmental conditions, and damage.
Module: M (extensions.editor.vehicleEditor.liveEditor.veGeneralData)
| Function | Description |
|---|---|
M.open() | Opens the general data window |
M.onUpdate() | Queries vehicle Lua for data and renders telemetry table |
M.onSerialize() / M.onDeserialized(data) | Persists window open state |
| Property | Value |
|---|---|
M.menuEntry | "General Data" |
Displayed Fields
| Field | Units | Source |
|---|---|---|
| Position | m | obj:getPosition() |
| Rotation | - | obj:getRotation() |
| Heading | - | obj:getDirectionVector() |
| Roll/Pitch/Yaw | rad | obj:getRollPitchYaw() |
| Velocity | m/s | obj:getVelocity() |
| Acceleration | m/s² | sensors.gx2, gy2, gz2 |
| Speed | m/s | vel:length() |
| Airspeed | m/s | obj:getAirflowSpeed() |
| Ground Speed | m/s | obj:getGroundSpeed() |
| Air Temperature | °C | obj:getEnvTemperature() - 273.15 |
| Air Pressure | kPa | obj:getEnvPressure() * 0.001 |
| Air Density | kg/m³ | obj:getAirDensity() |
| Vehicle Damage | $ | beamstate.damage |
Usage Example
-- Open via Vehicle Editor > Live Editor > General Data
extensions.editor_vehicleEditor_liveEditor_veGeneralData.open()
-- The extension queries vehicle data every frame via queueLuaCommand:
vEditor.vehicle:queueLuaCommand([[
local data = {}
data.heading = vec3(obj:getDirectionVector())
data.pos = vec3(obj:getPosition())
data.vel = vec3(obj:getVelocity())
data.rot = vec3(obj:getRotation())
data.roll, data.pitch, data.yaw = obj:getRollPitchYaw()
data.sensors = {}
data.sensors.gx2 = sensors.gx2
data.sensors.gy2 = sensors.gy2
data.sensors.gz2 = sensors.gz2
data.airflowSpeed = obj:getAirflowSpeed()
data.groundSpeed = obj:getGroundSpeed()
data.envTemperature = obj:getEnvTemperature()
data.envPressure = obj:getEnvPressure()
data.airDensity = obj:getAirDensity()
data.damage = beamstate.damage
obj:queueGameEngineLua("vEditor.generalData =" .. serialize(data))
]])
-- Data is displayed in a two-column ImGui table:
-- Column 0 (200px): field label
-- Column 1 (1000px): formatted value (4 decimal places)See Also
- Adjustable Tech Car Tuner - Related reference
- Aero Debug - Related reference
- Crash Tester - Related reference
- World Editor Guide - Guide
Flexbody Debug
Live editor app for inspecting and debugging flexbody meshes - visualises vertices, nodes, locator coordinates, and detects problematic vertices (spiking, lacking nearby nodes).
JBeam Picker
Live editor app for interactively picking, inspecting, and monitoring nodes and beams in the 3D viewport - displays static JBeam data, live telemetry graphs, and supports text-based search.