![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BlendSpaceHelpers.h>
Public Member Functions | |
| bool | FindTriangleThisPointBelongsTo (const FVector2D &TestPoint, FVector &OutBarycentricCoords, FTriangle *&OutTriangle, const TArray< FTriangle * > &TriangleList) const |
| void | GenerateGridElements (const TArray< FVertex > &SamplePoints, const TArray< FTriangle * > &TriangleList) |
| FBlendSpaceGrid () | |
| void | Reset () |
| void | SetGridInfo (const FBlendParameter &BlendParamX, const FBlendParameter &BlendParamY) |
| const FEditorElement & | GetElement (const int32 GridX, const int32 GridY) const |
| const TArray< FEditorElement > & | GetElements () const |
| const FVector2D | GetPosFromIndex (const int32 GridX, const int32 GridY) const |
BlendSpace Grid Using triangulated space, create FEditorElement of each grid point using SamplePoint
|
inline |
default value
| bool FBlendSpaceGrid::FindTriangleThisPointBelongsTo | ( | const FVector2D & | TestPoint, |
| FVector & | OutBarycentricCoords, | ||
| FTriangle *& | OutTriangle, | ||
| const TArray< FTriangle * > & | TriangleList | ||
| ) | const |
Find Triangle this TestPoint is within
| TestPoint | Point to test |
| OutBaryCentricCoords | Output BaryCentricCoords2D of the point in the triangle // for now it's only 2D |
| OutTriangle | The triangle that this point is within or lie |
| TriangleList | TriangleList to test |
| void FBlendSpaceGrid::GenerateGridElements | ( | const TArray< FVertex > & | SamplePoints, |
| const TArray< FTriangle * > & | TriangleList | ||
| ) |
Fill up Grid GridPoints using TriangleList input - Grid information should have been set by SetGridInfo
| SamplePoints | : Sample Point List |
| TriangleList | : List of triangles |
| const FEditorElement & FBlendSpaceGrid::GetElement | ( | const int32 | GridX, |
| const int32 | GridY | ||
| ) | const |
|
inline |
Convert grid index (GridX, GridY) to triangle coords and returns FVector2D
|
inline |
|
inline |