Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Elements/PCGSplineSampler.h |
| Include | #include "Elements/PCGSplineSampler.h" |
Syntax
USTRUCT&40;BlueprintType&41;
struct FPCGSplineSamplerParams
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bComputeCurvature | ||
| bool | bComputeDirectionDelta | ||
| bool | bProjectOntoSurface | Project sample points onto one possible surface given by the spline boundary | |
| bool | bSeedFrom2DPosition | Controls whether we will seed the sampled points using the 3D position or the 2D (XY) position | |
| bool | bSeedFromLocalPosition | Controls whether we will seed the sampled points using the final world position or the local position | |
| bool | bTreatSplineAsPolyline | Use the spline points to form a polyline, instead of computing many sample points along the spline. | |
| bool | bUnbounded | If no Bounding Shape input is provided, the actor bounds are used to limit the sample generation domain. | |
| FName | CurvatureAttribute | Attribute that will contain the curvature. | |
| EPCGSplineSamplingDimension | Dimension | ||
| float | DistanceIncrement | ||
| EPCGSplineSamplingFill | Fill | ||
| float | InteriorBorderSampleSpacing | The space between each sample point on the spline boundary. | |
| FRuntimeFloatCurve | InteriorDensityFalloffCurve | TODO: DirtyCache for OnDependencyChanged when this float curve is an external asset. | |
| EPCGSplineSamplingInteriorOrientation | InteriorOrientation | Determines the orientation of interior points | |
| float | InteriorSampleSpacing | The space between each sample point | |
| EPCGSplineSamplingMode | Mode | ||
| FName | NextDirectionDeltaAttribute | Attribute that wil contain the delta angle to the next point on the spline w.r.t to the current's point Up vector. | |
| int32 | NumHeightSubdivisions | ||
| int32 | NumPlanarSubdivisions | ||
| float | PointSteepness | Each PCG point represents a discretized, volumetric region of world space. | |
| int32 | SubdivisionsPerSegment |