Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FHeightField
Description
Visit all triangles transformed into the specified space. Triangles will have standard winding, regardless of heightfield scale.
| Name | VisitTriangles |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/HeightField.h |
| Include Path | #include "Chaos/HeightField.h" |
template<typename TriangleVisitor>
void VisitTriangles
(
const FAABB3 & QueryBounds,
const FRigidTransform3 & QueryTransform,
const TriangleVisitor & Visitor
) const
Parameters
| Name | Remarks |
|---|---|
| QueryBounds | Bounding box in which we want to produce triangles, in HeightField space |
| QueryTransform | Transforms from HeightField space to query space (usually the other object's space) |
| CullDistance | The distance at which we can ignore triangles |
| Visitor | void(const FTriangle& Triangle, const int32 TriangleIndex, const int32 VertexIndex0, const int32 VertexIndex1, const int32 OutVertexIndex2) |