Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSettingsInterface
- UPCGSettings
- UPCGPathfindingSettings
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Elements/PCGPathfindingElement.h |
| Include | #include "Elements/PCGPathfindingElement.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural), HideCategories="Data|Attributes")
class UPCGPathfindingSettings : public UPCGSettings
Remarks
Finds the optimal path across the points of a given point cloudshould one existwhen provided a start and goal location, and a maximum jump distance between points. Can return a partial path.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAcceptPartialPath | Even if the path is not complete, return a viable partial path to the point closest to the goal. | |
| bool | bCopyOriginatingPoints | Copy the properties and attributes from the originating point input to the output points. | |
| bool | bGoalLocationsAsInput | ||
| bool | bOutputAsSpline | The final path will be a spline. If false, the final path will be an ordered point data. | |
| bool | bStartLocationsAsInput | ||
| bool | bUsePathTraces | Controls whether raycasts will be used to test for collisions along the path (hit results will be considered obstacles for the pathfinding). | |
| FPCGAttributePropertyInputSelector | CostAttribute | Attribute to use as part of the cost function - it's meaning will depend on the cost function mode (fitness value, scalar multiplier, or else). | |
| EPCGPathfindingCostFunctionMode | CostFunctionMode | Controls whether the cost function will use a given attribute as a scalar wrt to the distance. | |
| FVector | Goal | The location the pathfinding should attempt to reach. | |
| FPCGAttributePropertyInputSelector | GoalLocationAttribute | ||
| double | HeuristicWeight | The heuristic estimates a faster path to speed up processing. | |
| double | MaximumFitnessPenaltyFactor | Fitness penalty scalar (maximum penalty applied when fitness is zero.) | |
| FPCGWorldRaycastQueryParams | PathTraceParams | ||
| double | SearchDistance | The max distance from each point to search for the next viable point in the path. | |
| EPCGPathfindingSplineMode | SplineMode | Determines how the output spline's curves will be calculated. | |
| FVector | Start | The location the pathfinding should attempt to reach. | |
| FPCGAttributePropertyInputSelector | StartLocationAttribute |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from UPCGSettings
| Type | Name | Description | |
|---|---|---|---|
| FPCGElementPtr | |||
| EPCGChangeType | GetChangeTypeForProperty
(
const FName& InPropertyName |
Gets the change impact for a given property. | |
| FName | |||
| FText | |||
| FText | |||
| EPCGSettingsType | GetType () |
||
| TArray< FPCGPinProperties > | Returns an array of all the input pin properties. You should not add manually a "params" pin, it is handled automatically by FillOverridableParamsPins. | ||
| TArray< FPCGPinProperties > |