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
Sidewalk Spline KitSidewalk Spline PopulateSidewalk Spline Manager

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 ExtensionseditorsidewalkSpline

Sidewalk Spline Kit

Handles loading sidewalk mesh kits from folders - discovers meshes, extracts anchor points, groups base meshes with variations, and builds distribution groups for piece selection.

Handles loading sidewalk mesh kits from folders - discovers meshes, extracts anchor points, groups base meshes with variations, and builds distribution groups for piece selection.


Public API

FunctionSignatureDescription
M.getSidewalkKit(kitFolderPath)Scans a folder for .dae files and returns a mesh kit array
M.buildSidewalkKit(meshKit, spline)Pre-computes piece data, groups variations with base meshes, builds kit description
M.buildDistributionGroups(spline)Builds weighted distribution groups for efficient piece selection during population
M.getRectAndPizzaMeshPaths(meshKit)Extracts paths for square.dae (rect) and triangle.dae (pizza) special meshes
M.getPieceEnabled(spline, pieceId)Returns whether a piece is enabled for the given spline
M.setPieceEnabled(spline, pieceId, enabled)Sets the enabled state for a piece

Mesh Kit Structure

local meshKit = {
  { id = "uuid", meshPath = "/path/to/piece.dae", fileName = "piece.dae", folderPath = "/path/to/" },
  ...
}

Kit Description Structure

local kitDescription = {
  pieces = {
    {
      pieceIndex = 1,
      baseMesh = { meshPath = "...", fileName = "sidewalk_straight.dae" },
      anchors = { leftA = vec3(...), rightA = vec3(...) },
      variations = {
        { varId = "uuid_var1", meshPath = "...", fileName = "sidewalk_straight_var1.dae" },
      },
      isEnabled = true,
    },
  },
  folderPath = "/path/to/kit/",
}

Anchor Point Format

Anchor points are read from mesh node names matching: sidewalk.<identifier>

Examples: sidewalk.leftA, sidewalk.rightB


Naming Conventions

PatternMeaning
piece.daeBase mesh
piece_var1.daeVariation 1 of piece.dae
square.daeRectangular fill piece
triangle.daePizza (triangular) fill piece

Notes

  • Uses TSStatic temporarily to read anchor point names from meshes
  • Variations are detected by "var" substring in filename (case-insensitive)
  • Distribution groups support weighted random and round-robin selection
  • Piece enabled states are stored per-spline in spline.pieceEnabledStates

See Also

  • Sidewalk Spline Populate - Related reference
  • Sidewalk Spline Manager - Related reference
  • World Editor Guide - Guide

Road Spline Layer Manager

Manages the DecalRoad layers within road spline groups - handles layer creation, removal, duplication, chunking for long splines, and all auto-generated detail layer types.

Sidewalk Spline Populate

Handles the procedural placement of sidewalk meshes along splines - places rectangular pieces along the path with parallel-transport framing, fills gaps with triangular "pizza" pieces at turns, and ma

On this page

Public APIMesh Kit StructureKit Description StructureAnchor Point FormatNaming ConventionsNotesSee Also