Skip to main content

Spline

Base:
UBlueprintFunctionLibrary
Type:
UNSplinePickerLibrary / FNSplinePicker
Header File:
NexusActorPools/Public/NSplinePickerLibrary.h

Provides various functions for generating points along a USplineComponent spline using different random generation strategies (deterministic, non-deterministic, seeded).

The UNSplinePickerLibrary wraps the native FNSplinePicker functionality in a Blueprint friendly manner. Should you be wanting to utilize a picker in native code it is best to directly reference FNSplinePicker directly to avoid the abstraction layer as it has a similar API.

Methods​

Next Point (On)​

Spline: Next Point

Generates a deterministic point on a USplineComponent's spline.

info

Uses FNRandom::Deterministic to ensure reproducible results.

Next Point Projected (On)​

Spline: Next Point Projected

Generates a deterministic point on a USplineComponent's spline, then projects it to the world.

info

Uses FNRandom::Deterministic to ensure reproducible results.

Random Point (On)​

Spline: Random Point

Generates a random point on a USplineComponent's spline.

Random Point Projected (On)​

Spline: Random Point Projected

Generates a random point on a USplineComponent's spline, then projects it to the world.

Random One-Shot Point (On)​

Spline: Random One-Shot Point

Generates a random point on a USplineComponent's spline using a provided seed.

Random One-Shot Point Projected (On)​

Spline: Random One-Shot Point Projected

Generates a random point on a USplineComponent's spline using a provided seed, then projects it to the world.

Random Tracked Point (On)​

Spline: Random Tracked Point

Generates a random point on a USplineComponent's spline while tracking the random seed state.

Random Tracked Point Projected (On)​

Spline: Random Tracked Point Projected

Generates a random point on a USplineComponent's spline while tracking the random seed state, then projects it to the world.

Parameters​

VariantParameterTypeDescriptionDefault
BaseSplineComponentUSplineComponent*The spline component to generate points on.
ProjectedProjectionFVectorDirection and distance for the line trace.FVector(0,0,-500.f)
ProjectedCollisionChannelECollisionChannelThe collision channel to use for tracing.ECC_WorldStatic
TrackedSeedint32&The seed to be used when generating, and altered for determinism.
One-ShotSeedint32The throw-away seed used when generating.