Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrain module · member function

FOrbdaleTerrainFeatures::

SamplePointsFromSpline

The spline's centreline as corridor Points: samples at equal distances, spacing at most StationSpacing, world cm.

Declaration

static void SamplePointsFromSpline(const USplineComponent* Spline, double Spacing_cm, TArray<FVector>& OutPoints);
Header
#include "OrbdaleTerrainFeatures.h"
Module
PublicDependencyModuleNames.Add("OrbdaleTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
Game thread (reads the component).

Parameters

NameTypeDefaultMeaning
Splineconst USplineComponent*—

May be null (empty result).

Spacing_cmdouble—

Clamped to the station spacing limits.

OutPointsTArray<FVector>&—

Receives the points, world cm; emptied first.

Note.

Game thread (reads the component).