RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Route Distance (Flowgraph Node)Closest Road (Flowgraph Node)Custom Lua (Flowgraph Node)Distance Between (Flowgraph Node)Waypoints Distance (Flowgraph Node)File Exists (Flowgraph Node)Get First Element of Table (Flowgraph Node)Get Level Data (Flowgraph Node)Get Map Objects IDs by DynField (Flowgraph Node)Get Table Value By Key (Flowgraph Node)GHOST (Flowgraph Node)Hide Loading Screen (Flowgraph Node)Color HSV (Flowgraph Node)Line Point From Xnorm (Flowgraph Node)Load Level (Flowgraph Node)Load Project (Flowgraph Node)On Menu (Flowgraph Node)Perlin Noise (Flowgraph Node)Pop Action Map (Flowgraph Node)Get Project InfoPush Action MapRandom ColorRandom NumberRandom QuaternionRandom VectorRoad PropertiesGet Navgraph RouteRoute PositionTemplate NodeTimeTimed SequenceTo NumberTo StringWorld Editor Open

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 Extensionsflowgraphnodesutil

Line Point From Xnorm (Flowgraph Node)

- **Node Name:** `Line Point From Xnorm`

Overview

  • Node Name: Line Point From Xnorm
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/util/linePointFromXnorm.lua

Returns the position that lies between two points on a line segment at a given normalized ratio (xnorm).

Pin Schema

Input Pins

PinTypeDescription
posAvec3Line start position
posBvec3Line end position
xnormnumberNormalized ratio (0 = posA, 1 = posB); defaults to 0.5 (midpoint)

Output Pins

PinTypeDescription
posvec3Calculated interpolated position

Internals

Key Methods

MethodDescription
work()Converts input tables to vec3, calls linePointFromXnorm(), outputs result as table

How It Works

  1. Reads posA and posB as vec3 values from their table representations.
  2. Uses the engine function linePointFromXnorm(posA, posB, xnorm) to compute the interpolated point.
  3. Defaults to 0.5 (midpoint) if no xnorm value is provided.
  4. Outputs the result converted back to a table via :toTable().

Usage Example

-- Find the midpoint between two waypoints:
-- [Waypoint A] → posA → [Line Point From Xnorm] xnorm=0.5
-- [Waypoint B] → posB →   → pos → [Place Object]

-- Find a point 25% along a segment:
-- [Line Point From Xnorm] posA={0,0,0}, posB={100,0,0}, xnorm=0.25
-- → pos = {25, 0, 0}

-- Direct Lua equivalent:
local pos = linePointFromXnorm(vec3(0,0,0), vec3(100,0,0), 0.25)

Key Dependencies

  • linePointFromXnorm() - engine function for linear interpolation along a line segment
  • vec3 - 3D vector type with :setFromTable() and :toTable() methods

See Also

  • Route Distance (Flowgraph Node) - Related reference
  • Closest Road (Flowgraph Node) - Related reference
  • Custom Lua (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Color HSV (Flowgraph Node)

- **Node Name:** `Color HSV`

Load Level (Flowgraph Node)

- **Node Name:** `Load Level`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also