RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager
Gen Decal EditorGen Experimental Frame EditorGen Mesh ExplorerGen Experimental SolidFlexGen Mesh ModuleGen Network ModuleGen Region ModuleGen Render ModuleGen Terrain ModuleEditor Gen TestEditor Gen Top (Roof Geometry)Editor Gen UI (Building Architect UI)Editor Gen UtilsEditor Gen World

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionseditorgen

Gen Experimental Frame Editor

Experimental frame/skeleton editor for procedural body animation and inverse kinematics.

Experimental frame/skeleton editor for procedural body animation and inverse kinematics.


Overview

The exp_frame module is an experimental tool within the gen editor framework for creating and manipulating skeletal body structures. It implements a bone/joint system with gradient-descent optimization for inverse kinematics, supporting femur, tibia, pelvic, and sternum bones with configurable lengths and angles.


Module Table: W

FieldTypeDescription
W.outtableOutput data
W.uitableUI state
W.isactivebooleanWhether the editor is active

Key Functions

FunctionDescription
W.up(k, lbl)Initializes the editor: hides player, registers window, creates edit group
a2b(ac, g)Applies coefficient array to body bone angles
forEdge(nm)Computes edge vector for a named bone

Body Structure

BoneFrom → ToLengthDescription
tibia_rt_b_r → f_b_r0.6Right tibia
tibia_lt_b_l → f_b_l0.6Left tibia
femur_rf_b_r → p_r0.6Right femur
femur_lf_b_l → p_l0.6Left femur
pelvicp_r → p_l0.4Pelvic bone
sternums_b → s_t0.8Sternum

Dependencies

ModulePath
Utils/lua/ge/extensions/editor/gen/utils
UI Lib/lua/ge/extensions/editor/gen/lib/ui
AI Lib/lua/ge/extensions/editor/gen/lib/ai

Usage Example

-- The frame editor is activated through the gen editor menu.
-- It creates a SimGroup 'edit' for its objects and uses
-- gradient descent to solve IK for the skeleton.
W.up('exp_frame', 'Frame Editor')

Exported Fields

  • W.dmove (table) - Movement definitions table containing to_target and stop movement modes with callbacks and target positions.
  • W.isactive (boolean) - Whether the editor is currently active.

Exported Functions

W.up(k, lbl)

Initializes the frame editor: hides spawn/player objects, registers and shows editor window, creates edit SimGroup, runs test in dev mode.

  • k (string) - Window name/key
  • lbl (string) - Window label

W.onVal(key, val)

Callback for UI value changes. Handles coefficient display switching via key index.

  • key (number) - Coefficient index
  • val (any) - Value

W.gui()

Renders the ImGui editor window with bone coefficients, gradients, loss values, and hint overlay.

W.update()

Per-frame update: runs gradient descent optimization steps, handles mouse click (set target) and keyboard input (step/pause/dump).

W.test()

Initializes test scenario: loads saved state from file, sets up movement target, runs initial optimization pass.


See Also

  • Gen AI Library - Gradient descent optimization
  • Gen Mesh - 3D mesh utilities
  • Gen SolidFlex - Solid/flex body simulation

Gen Decal Editor

Experimental procedural road/decal generation system for the gen editor framework.

Gen Mesh Explorer

Experimental 3D mesh and JBeam explorer for inspecting vehicle geometry, beams, and materials.

On this page

OverviewModule Table: WKey FunctionsBody StructureDependenciesUsage ExampleExported FieldsExported FunctionsW.up(k, lbl)W.onVal(key, val)W.gui()W.update()W.test()See Also