Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_PolyPathFunctions
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/PolyPathFunctions.h |
| Include | #include "GeometryScript/PolyPathFunctions.h" |
Syntax
UCLASS (Meta=(ScriptName="GeometryScript_PolyPath"))
class UGeometryScriptLibrary_PolyPathFunctions : public UBlueprintFunctionLibrary
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FTransform > TArray< double > FGeometryScriptSplineSamplingOptionsFTransform bool | bIncludeScale | ||
| EGeometryScriptAxis | DropAxis | ||
| float int float float | EndAngle | ||
| TArray< FTransform > & | Frames | ||
| TArray< FTransform > TArray< double > & | FrameTimes | ||
| float int | NumPoints | ||
| float | Radius | ||
| TArray< FTransform > TArray< double > FGeometryScriptSplineSamplingOptionsFTransform | RelativeTransform | ||
| TArray< FTransform > TArray< double > FGeometryScriptSplineSamplingOptions | SamplingOptions | ||
| float int float | StartAngle |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FGeometryScriptPolyPath | Conv_ArrayOfVector2DToGeometryScriptPolyPath
(
const TArray< FVector2D >& PathVertices |
Returns a PolyPath created from an array of 2D position vectors. | |
| FGeometryScriptPolyPath | Conv_ArrayToGeometryScriptPolyPath
(
const TArray< FVector >& PathVertices |
Returns a PolyPath created from an array of 3D position vectors. | |
| TArray< FVector > | Returns an array of 3D vectors with the PolyPath vertex locations. | ||
| TArray< FVector2D > | Returns an array of 2D Vectors with the PolyPath vertex locations projected onto the XY plane. | ||
| void | ConvertArrayOfVector2DToPolyPath
(
const TArray< FVector2D >& VertexArray, |
Creates a PolyPath from an array of 2D position vectors. | |
| void | ConvertArrayToPolyPath
(
const TArray< FVector >& VertexArray, |
Creates a PolyPath from an array of 3D position vectors. | |
| void | ConvertPolyPathToArray
(
FGeometryScriptPolyPath PolyPath, |
Populates an array of 3D vectors with the PolyPath vertex locations. | |
| void | ConvertPolyPathToArrayOfVector2D
(
FGeometryScriptPolyPath PolyPath, |
Creates an array of 2D Vectors with the PolyPath vertex locations projected onto the XY plane. | |
| void | ConvertSplineToPolyPath
(
const USplineComponent* Spline, |
Sample positions from a USplineComponent into a PolyPath, based on the given SamplingOptions | |
| int32 | GetNearestVertexIndex
(
FGeometryScriptPolyPath PolyPath, |
Find the index of the vertex closest to a given point. Returns -1 if the PolyPath has no vertices. | |
| double | GetPolyPathArcLength
(
FGeometryScriptPolyPath PolyPath |
Returns the length of the PolyPath. | |
| int | GetPolyPathLastIndex
(
FGeometryScriptPolyPath PolyPath |
Returns the index of the last vertex in the PolyPath. | |
| int | GetPolyPathNumVertices
(
FGeometryScriptPolyPath PolyPath |
Returns the number of vertices in the the PolyPath. | |
| FVector | GetPolyPathTangent
(
FGeometryScriptPolyPath PolyPath, |
Returns the local tangent vector of the PolyPath at the specified vertex index. | |
| FVector | GetPolyPathVertex
(
FGeometryScriptPolyPath PolyPath, |
Returns the 3D position of the requested vertex in the PolyPath. | |
| static | UPARAM
(
DisplayName |
Create a 2D, flattened copy of the path by dropping the given axis, and using the other two coordinates as the new X, Y coordinates. | |
| static | UPARAM
(
DisplayName |
Create a closed circle around the origin on the XY plane, then transformed by Transform. | |
| static | UPARAM
(
DisplayName |
Create an open arc around the origin on the XY plane, then transformed by Transform. | |
| static | UPARAM
(
DisplayName |
Create a closed circle on the XY plane around the given Center. | |
| static | UPARAM
(
DisplayName |
Create an open arc on the XY plane around the given Center. | |
| static | UPARAM
(
DisplayName |
Sample a USplineComponent into a list of FTransforms, based on the given SamplingOptions. |