Skip to main content

Arc

Base:
UBlueprintFunctionLibrary
Type:
UNArcPickerLibrary / FNArcPicker
Header File:
NexusActorPools/Public/NArcPickerLibrary.h

Arc: Next Density

Provides various functions for generating points inside or on the surface of an arc using different random generation strategies (deterministic, non-deterministic, seeded).

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

Methods​

Next Point​

Arc: Next Arc: Next Projected

Gets the next deterministic point inside or on an FArc.

info

Uses FNRandom::Deterministic to ensure reproducible results.

Random Point​

Arc: Random Arc: Random Projected

Gets a random point inside or on an arc.

info

Uses FNRandom::NonDeterministic to produce pseudo-random results.

One-Shot Point​

Arc: One-Shot Arc: One-Shot Projected

Gets a random point inside or on an arc using a one-shot seed.

Tracked Point​

Arc: Tracked Arc: Tracked Projected

Gets a random point inside or on an arc using a tracked seed. The seed altered for each Count.

FNArcPickerParams​

Base​

ParameterTypeDescriptionDefault
CountintThe number of points to generate in a single pass.1
CachedWorldTObjectPtr<UWorld>The world for line tracing and drawing.
ProjectionModeENPickerProjectionModeShould the point be projected somewhere?ENPickerProjectionMode::None
ProjectionFVectorDirection and distance for the line trace.FVector(0,0,-500.f)
CollisionChannelTEnumAsByte<ECollisionChannel>The collision channel to use for tracing.ECC_WorldStatic

Arc​

ParameterTypeDescriptionDefault
OriginFVectorThe center point when attempting to generate new points.FVector::ZeroVector
RotationFRotatorThe base rotation used when trying to determine the arc angle.FRotator::ZeroRotator
DegreesfloatThe degrees of the arc.90.f
MinimumDistancefloatThe minimum distance to start finding points.0.f
MaximumDistancefloatThe maximum distance to find points.500.f