unreal.PCGSplineSamplerParams
¶
- class unreal.PCGSplineSamplerParams(mode: PCGSplineSamplingMode = Ellipsis, dimension: PCGSplineSamplingDimension = Ellipsis, fill: PCGSplineSamplingFill = Ellipsis, subdivisions_per_segment: int = 0, distance_increment: float = 0.0, num_planar_subdivisions: int = 0, num_height_subdivisions: int = 0, compute_direction_delta: bool = False, next_direction_delta_attribute: Name = 'None', compute_curvature: bool = False, curvature_attribute: Name = 'None', interior_sample_spacing: float = 0.0, interior_border_sample_spacing: float = 0.0, treat_spline_as_polyline: bool = False, interior_orientation: PCGSplineSamplingInteriorOrientation = Ellipsis, seed_from_local_position: bool = False, seed_from2d_position: bool = False)¶
Bases:
StructBase
PCGSpline Sampler Params
C++ Source:
Plugin: PCG
Module: PCG
File: PCGSplineSampler.h
Editor Properties: (see get_editor_property/set_editor_property)
compute_curvature
(bool): [Read-Write]compute_direction_delta
(bool): [Read-Write]curvature_attribute
(Name): [Read-Write] Attribute that will contain the curvature. Note that the radius of curvature is defined as 1/Curvature, and might need you to scale to world unitsdimension
(PCGSplineSamplingDimension): [Read-Write]distance_increment
(float): [Read-Write]fill
(PCGSplineSamplingFill): [Read-Write]interior_border_sample_spacing
(float): [Read-Write] The space between each sample point on the spline boundary. Used for computation; lower spacing is more expensive but more accurate.interior_density_falloff_curve
(RuntimeFloatCurve): [Read-Write] Defines the density for each sample based on its distance from the spline. X axis is normalized distance to boundary (0-1), Y axis is density value.interior_orientation
(PCGSplineSamplingInteriorOrientation): [Read-Write] Determines the orientation of interior pointsinterior_sample_spacing
(float): [Read-Write] The space between each sample pointmode
(PCGSplineSamplingMode): [Read-Write]next_direction_delta_attribute
(Name): [Read-Write] Attribute that wil contain the delta angle to the next point on the spline w.r.t to the current’s point Up vector.num_height_subdivisions
(int32): [Read-Write]num_planar_subdivisions
(int32): [Read-Write]project_onto_surface
(bool): [Read-Write] Project sample points onto one possible surface given by the spline boundaryseed_from2d_position
(bool): [Read-Write] Controls whether we will seed the sampled points using the 3D position or the 2D (XY) positionseed_from_local_position
(bool): [Read-Write] Controls whether we will seed the sampled points using the final world position or the local positionsubdivisions_per_segment
(int32): [Read-Write]treat_spline_as_polyline
(bool): [Read-Write] Use the spline points to form a polyline, instead of computing many sample points along the spline. This is more accurate if your spline is linear.
- property curvature_attribute: Name¶
[Read-Write] Attribute that will contain the curvature. Note that the radius of curvature is defined as 1/Curvature, and might need you to scale to world units
- Type:
(Name)
- property dimension: PCGSplineSamplingDimension¶
[Read-Write]
- Type:
- property fill: PCGSplineSamplingFill¶
[Read-Write]
- Type:
- property interior_border_sample_spacing: float¶
[Read-Write] The space between each sample point on the spline boundary. Used for computation; lower spacing is more expensive but more accurate.
- Type:
(float)
- property interior_orientation: PCGSplineSamplingInteriorOrientation¶
[Read-Write] Determines the orientation of interior points
- property interior_sample_spacing: float¶
[Read-Write] The space between each sample point
- Type:
(float)
- property mode: PCGSplineSamplingMode¶
[Read-Write]
- Type:
- property next_direction_delta_attribute: Name¶
[Read-Write] Attribute that wil contain the delta angle to the next point on the spline w.r.t to the current’s point Up vector.
- Type:
(Name)
- property seed_from2d_position: bool¶
[Read-Write] Controls whether we will seed the sampled points using the 3D position or the 2D (XY) position
- Type:
(bool)