API ReferenceGE ExtensionseditorvehicleEditorliveEditor
Crash Tester
Live editor app for spawning random vehicles at a picked location and launching them at a target speed for crash testing.
Live editor app for spawning random vehicles at a picked location and launching them at a target speed for crash testing.
Module: M (extensions.editor.vehicleEditor.liveEditor.veCrashTester)
| Function | Description |
|---|---|
M.open() | Opens the crash tester window |
M.onUpdate() | Draws UI and debug visualisation (start position arrows) |
M.onSerialize() / M.onDeserialized(data) | Persists window open state |
| Property | Value |
|---|---|
M.menuEntry | "Other/Crash Tester" |
Usage Example
-- Open via Vehicle Editor > Live Editor > Other > Crash Tester
extensions.editor_vehicleEditor_liveEditor_veCrashTester.open()
-- Workflow:
-- 1. Set number of vehicles (1-15) and target speed (10-200 km/h)
-- 2. Click "Pick Start Location" to enter placement mode
-- - Mouse wheel rotates the start direction
-- - Click terrain to confirm position and rotation
-- - Red triangles preview vehicle spawn positions
-- 3. Click "Run Test!" to:
-- - Randomly select vehicles (Car/Truck types only)
-- - Spawn them 10m apart along the start direction
-- - Apply initial velocity in the start direction
-- - Release parking brake
-- 4. Click "Stop Test!" to delete all spawned vehicles
-- Vehicle selection uses core_vehicles.getVehicleList()
-- filtered to Car and Truck types, then random selection
-- Each vehicle is spawned via core_vehicles.spawnNewVehicle()
-- with position offset and rotation from the start point
-- Initial velocity is applied via applyClusterVelocityScaleAdd()
-- The test visualises spawn positions with red directional triangles
-- drawn in the 3D viewport using debugDrawer:drawTriSolid()See Also
- Adjustable Tech Car Tuner - Related reference
- Aero Debug - Related reference
- Flexbody Debug - Related reference
- World Editor Guide - Guide
Aero Debug
Live editor app for visualising vehicle aerodynamic forces, torques, and per-axle downforce distribution.
Flexbody Debug
Live editor app for inspecting and debugging flexbody meshes - visualises vertices, nodes, locator coordinates, and detects problematic vertices (spiking, lacking nearby nodes).