Navigation
Unreal Engine C++ API Reference > Runtime > Chaos > Chaos
Inheritance Hierarchy
- FImplicitObject
- FHeightField
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/HeightField.h |
Include | #include "Chaos/HeightField.h" |
Syntax
class FHeightField : public Chaos::FImplicitObject
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FDataType | GeomData |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FHeightField
(
const FHeightField& Other |
||
![]() |
FHeightField
(
TArray< FReal >&& Height, |
||
![]() |
FHeightField
(
TArrayView< const uint16 > InHeights, |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Not required as long as FImplicitObject also has deleted move constructor (adding this causes an error on Linux build) FHeightField(FHeightField&& Other) = default; |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | EditHeights
(
TArrayView< const uint16 > InHeights, |
Support for editing a subsection of the heightfield |
![]() |
void | EditHeights
(
TArrayView< FReal > InHeights, |
Support for editing a subsection of the heightfield |
![]() ![]() |
FClosestFaceData | FindClosestFace
(
const FVec3& Position, |
|
![]() ![]() |
FReal | GetHeight
(
int32 InIndex |
|
![]() ![]() |
FReal | GetHeight
(
int32 InX, |
|
![]() ![]() |
FReal | GetHeightAt
(
const FVec2& InGridLocationLocal |
|
![]() ![]() |
uint8 | GetMaterialIndex
(
int32 InX, |
|
![]() ![]() |
uint8 | GetMaterialIndex
(
int32 InIndex |
|
![]() ![]() |
FVec3 | GetNormalAt
(
const FVec2& InGridLocationLocal |
|
![]() ![]() |
int32 | GetNumCols () |
|
![]() ![]() |
int32 | GetNumRows () |
|
![]() ![]() |
FVec3 | GetPointScaled
(
int32 InIndex |
|
![]() ![]() |
bool | GJKContactPoint
(
const TImplicitObjectScaled< FCapsule >& QueryGeom, |
|
![]() ![]() |
bool | GJKContactPoint
(
const TImplicitObjectScaled< TBox< FReal, 3 >>& QueryGeom, |
|
![]() ![]() |
bool | GJKContactPoint
(
const FConvex& QueryGeom, |
|
![]() ![]() |
bool | GJKContactPoint
(
const FCapsule& QueryGeom, |
|
![]() ![]() |
bool | GJKContactPoint
(
const TBox< FReal, 3 >& QueryGeom, |
|
![]() ![]() |
bool | GJKContactPoint
(
const TImplicitObjectScaled< FConvex >& QueryGeom, |
|
![]() ![]() |
bool | GJKContactPoint
(
const TImplicitObjectScaled< TSphere< FReal, 3 >>& QueryGeom, |
|
![]() ![]() |
bool | GJKContactPoint
(
const TSphere< FReal, 3 >& QueryGeom, |
|
![]() ![]() |
bool | IsHole
(
int32 InIndex |
|
![]() ![]() |
bool | IsHole
(
int32 InCellX, |
|
![]() ![]() |
bool | IsOverlappingAnyCells
(
const FAABB3& QueryBounds |
Does the mesh-space QueryBounds overlap the bounds of any cells in the heightfield? |
![]() ![]() |
bool | OverlapGeom
(
const TImplicitObjectScaled< TBox< FReal, 3 >>& QueryGeom, |
|
![]() ![]() |
bool | OverlapGeom
(
const TImplicitObjectScaled< FConvex >& QueryGeom, |
|
![]() ![]() |
bool | OverlapGeom
(
const TImplicitObjectScaled< FCapsule >& QueryGeom, |
|
![]() ![]() |
bool | OverlapGeom
(
const TImplicitObjectScaled< TSphere< FReal, 3 >>& QueryGeom, |
|
![]() ![]() |
bool | OverlapGeom
(
const FConvex& QueryGeom, |
|
![]() ![]() |
bool | OverlapGeom
(
const TBox< FReal, 3 >& QueryGeom, |
|
![]() ![]() |
bool | OverlapGeom
(
const TSphere< FReal, 3 >& QueryGeom, |
|
![]() ![]() |
bool | OverlapGeom
(
const FCapsule& QueryGeom, |
|
![]() |
void | ||
![]() ![]() |
constexpr EImplicitObjectType | StaticType () |
|
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | SweepGeomCCD
(
const TImplicitObjectScaled< TSphere< FReal, 3 >>& QueryGeom, |
Sweep used for CCD. Ignores triangles we penetrate by less than IgnorePenetration, and calculate the TOI for a depth of TargetPenetration. If both are zero, this is equivalent to SweepGeom. |
![]() ![]() |
bool | SweepGeomCCD
(
const TImplicitObjectScaled< TBox< FReal, 3 >>& QueryGeom, |
Sweep used for CCD. Ignores triangles we penetrate by less than IgnorePenetration, and calculate the TOI for a depth of TargetPenetration. If both are zero, this is equivalent to SweepGeom. |
![]() ![]() |
bool | Sweep used for CCD. Ignores triangles we penetrate by less than IgnorePenetration, and calculate the TOI for a depth of TargetPenetration. If both are zero, this is equivalent to SweepGeom. | |
![]() ![]() |
bool | Sweep used for CCD. Ignores triangles we penetrate by less than IgnorePenetration, and calculate the TOI for a depth of TargetPenetration. If both are zero, this is equivalent to SweepGeom. | |
![]() ![]() |
bool | SweepGeomCCD
(
const TImplicitObjectScaled< FConvex >& QueryGeom, |
Sweep used for CCD. Ignores triangles we penetrate by less than IgnorePenetration, and calculate the TOI for a depth of TargetPenetration. If both are zero, this is equivalent to SweepGeom. |
![]() ![]() |
bool | Sweep used for CCD. Ignores triangles we penetrate by less than IgnorePenetration, and calculate the TOI for a depth of TargetPenetration. If both are zero, this is equivalent to SweepGeom. | |
![]() ![]() |
bool | SweepGeomCCD
(
const TImplicitObjectScaled< FCapsule >& QueryGeom, |
Sweep used for CCD. Ignores triangles we penetrate by less than IgnorePenetration, and calculate the TOI for a depth of TargetPenetration. If both are zero, this is equivalent to SweepGeom. |
![]() ![]() |
bool | Sweep used for CCD. Ignores triangles we penetrate by less than IgnorePenetration, and calculate the TOI for a depth of TargetPenetration. If both are zero, this is equivalent to SweepGeom. | |
![]() ![]() |
void | VisitTriangles
(
const FAABB3& QueryBounds, |
Visit all triangles transformed into the specified space. |
Overridden from FImplicitObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
const FAABB3 | BoundingBox () |
|
![]() ![]() ![]() |
FVec3 | FindGeometryOpposingNormal
(
const FVec3& DenormDir, |
Given a normal and a face index, compute the most opposing normal associated with the underlying geometry features. |
![]() ![]() ![]() |
int32 | FindMostOpposingFace
(
const FVec3& Position, |
Returns the most opposing face. |
![]() ![]() ![]() |
uint16 | GetMaterialIndex
(
uint32 HintIndex |
|
![]() ![]() ![]() |
uint32 | GetTypeHash () |
|
![]() ![]() ![]() |
bool | IsOverlappingBoundsImpl
(
const FAABB3& LocalBounds |
This should not be public, but it needs to be callable by derived classes on another instance. |
![]() ![]() ![]() |
bool | This gives derived types a way to do an overlap check without calling PhiWithNormal todo: this api is confusing. | |
![]() ![]() ![]() |
FReal | PhiWithNormal
(
const FVec3& x, |
Find the closest point on the surface, and return the separating distance and axis. |
![]() ![]() ![]() |
bool | This gives derived types a way to avoid calling PhiWithNormal todo: this api is confusing. | |
![]() ![]() |
void | Serialize
(
FChaosArchive& Ar |
|
![]() ![]() ![]() |
void | VisitOverlappingLeafObjectsImpl
(
const FAABB3& LocalBounds, |
This should not be public, but it needs to be callable by derived classes on another instance. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FClosestFaceData | ||
![]() |
FData |
Typedefs
Name | Description |
---|---|
FDataType |