THeightField

Windows
MacOS
Linux

Inheritance Hierarchy

FImplicitObject

THeightField

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/CollisionResolution.h

Include

#include "Chaos/CollisionResolution.h"

Syntax

template<typename T>
class THeightField : public Chaos::FImplicitObject

Variables

Name Description

Public variable

FDataType

 

GeomData

Constructors

Name Description

Public function

THeightField

(
    const THeightField & Other
)

Public function

THeightField

(
    THeightField && Other
)

Public function

THeightField

(
    TArray < T >&& Height,
    TArray < uint8 >&& InMaterialIndice...,
    int32 InNumRows,
    int32 InNumCols,
    const TVector < T, 3 >& InScale
)

Public function

THeightField

(
    TArrayView < const uint16 > InHeight...,
    TArrayView < uint8 > InMaterialIndic...,
    int32 InNumRows,
    int32 InNumCols,
    const TVector < T, 3 >& InScale
)

Destructors

Name Description

Public function Virtual

~THeightField()

Functions

Name Description

Public function

void

 

EditHeights

(
    TArrayView < const uint16 > InHeight...,
    int32 InBeginRow,
    int32 InBeginCol,
    int32 InNumRows,
    int32 InNumCols
)

Support for editing a subsection of the heightfield

Public function

void

 

EditHeights

(
    TArrayView < T > InHeights,
    int32 InBeginRow,
    int32 InBeginCol,
    int32 InNumRows,
    int32 InNumCols
)

Support for editing a subsection of the heightfield

Public function Virtual Const

TVector < T, ...

 

FindGeometryOpposingNormal

(
    const TVector < T, 3 >& DenormDir,
    int32 FaceIndex,
    const TVector < T, 3 >& OriginalNor...
)

Public function Virtual Const

int32

 

FindMostOpposingFace

(
    const TVector < T, 3 >& Position,
    const TVector < T, 3 >& UnitDir,
    int32 HintFaceIndex,
    T SearchDist
)

Public function Const

T

 

GetHeight

(
    int32 InX,
    int32 InY
)

Public function Const

T

 

GetHeight

(
    int32 InIndex
)

Public function Const

T

 

GetHeightAt

(
    const TVector < T, 2 >& InGridLocat...
)

Public function Const

uint8

 

GetMaterialIndex

(
    int32 InIndex
)

Public function Const

uint8

 

GetMaterialIndex

(
    int32 InX,
    int32 InY
)

Public function Const

int32

 

GetNumCols()

Public function Const

int32

 

GetNumRows()

Public function Const

bool

 

GJKContactPoint

(
    const FConvex & QueryGeom,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    TVector < T, 3 >& ContactLocation,
    TVector < T, 3 >& ContactNormal,
    T& ContactPhi
)

Public function Const

bool

 

GJKContactPoint

(
    const TCapsule < T >& QueryGeom,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    TVector < T, 3 >& ContactLocation,
    TVector < T, 3 >& ContactNormal,
    T& ContactPhi
)

Public function Const

bool

 

GJKContactPoint

(
    const TSphere < T, 3 >& QueryGeom,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    TVector < T, 3 >& ContactLocation,
    TVector < T, 3 >& ContactNormal,
    T& ContactPhi
)

Public function Const

bool

 

GJKContactPoint

(
    const TImplicitObjectScaled < TCapsu ...,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    TVector < T, 3 >& ContactLocation,
    TVector < T, 3 >& ContactNormal,
    T& ContactPhi
)

Public function Const

bool

 

GJKContactPoint

(
    const TImplicitObjectScaled < FConve ...,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    TVector < T, 3 >& ContactLocation,
    TVector < T, 3 >& ContactNormal,
    T& ContactPhi
)

Public function Const

bool

 

GJKContactPoint

(
    const TImplicitObjectScaled < TSpher ...,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    TVector < T, 3 >& ContactLocation,
    TVector < T, 3 >& ContactNormal,
    T& ContactPhi
)

Public function Const

bool

 

GJKContactPoint

(
    const TImplicitObjectScaled < TBox < ...,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    TVector < T, 3 >& ContactLocation,
    TVector < T, 3 >& ContactNormal,
    T& ContactPhi
)

Public function Const

bool

 

GJKContactPoint

(
    const TBox < T, 3 >& QueryGeom,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    TVector < T, 3 >& ContactLocation,
    TVector < T, 3 >& ContactNormal,
    T& ContactPhi
)

Public function Const

bool

 

IsHole

(
    int32 InIndex
)

Public function Const

bool

 

IsHole

(
    int32 InCellX,
    int32 InCellY
)

Public function Virtual Const

bool

 

Overlap

(
    const TVector < T, 3 >& Point,
    const T Thickness
)

Public function Const

bool

 

OverlapGeom

(
    const TImplicitObjectScaled < TBox < ...,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TImplicitObjectScaled < FConve ...,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TSphere < T, 3 >& QueryGeom,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TBox < T, 3 >& QueryGeom,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TCapsule < T >& QueryGeom,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const FConvex & QueryGeom,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TImplicitObjectScaled < TSpher ...,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TImplicitObjectScaled < TCapsu ...,
    const TRigidTransform < T, 3 >& Que...,
    const T Thickness,
    FMTDInfo * OutMTD
)

Public function Virtual Const

T

 

PhiWithNormal

(
    const TVector < T, 3 >& x,
    TVector < T, 3 >& Normal
)

Public function Virtual Const

bool

 

Raycast

(
    const TVector < T, 3 >& StartPoint,
    const TVector < T, 3 >& Dir,
    const T Length,
    const T Thickness,
    T& OutTime,
    TVector < T, 3 >& OutPosition,
    TVector < T, 3 >& OutNormal,
    int32 & OutFaceIndex
)

Public function

void

 

SetScale

(
    const TVector < T, 3 >& InScale
)

Public function Static

constexpr EI ...

 

StaticType()

Public function Const

bool

 

SweepGeom

(
    const TSphere < T, 3 >& QueryGeom,
    const TRigidTransform < T, 3 >& Sta...,
    const TVector < T, 3 >& Dir,
    const T Length,
    T& OutTime,
    TVector < T, 3 >& OutPosition,
    TVector < T, 3 >& OutNormal,
    int32 & OutFaceIndex,
    const T Thickness,
    bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TBox < T, 3 >& QueryGeom,
    const TRigidTransform < T, 3 >& Sta...,
    const TVector < T, 3 >& Dir,
    const T Length,
    T& OutTime,
    TVector < T, 3 >& OutPosition,
    TVector < T, 3 >& OutNormal,
    int32 & OutFaceIndex,
    const T Thickness,
    bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TCapsule < T >& QueryGeom,
    const TRigidTransform < T, 3 >& Sta...,
    const TVector < T, 3 >& Dir,
    const T Length,
    T& OutTime,
    TVector < T, 3 >& OutPosition,
    TVector < T, 3 >& OutNormal,
    int32 & OutFaceIndex,
    const T Thickness,
    bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const FConvex & QueryGeom,
    const TRigidTransform < T, 3 >& Sta...,
    const TVector < T, 3 >& Dir,
    const T Length,
    T& OutTime,
    TVector < T, 3 >& OutPosition,
    TVector < T, 3 >& OutNormal,
    int32 & OutFaceIndex,
    const T Thickness,
    bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TImplicitObjectScaled < TSpher ...,
    const TRigidTransform < T, 3 >& Sta...,
    const TVector < T, 3 >& Dir,
    const T Length,
    T& OutTime,
    TVector < T, 3 >& OutPosition,
    TVector < T, 3 >& OutNormal,
    int32 & OutFaceIndex,
    const T Thickness,
    bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TImplicitObjectScaled < TBox < ...,
    const TRigidTransform < T, 3 >& Sta...,
    const TVector < T, 3 >& Dir,
    const T Length,
    T& OutTime,
    TVector < T, 3 >& OutPosition,
    TVector < T, 3 >& OutNormal,
    int32 & OutFaceIndex,
    const T Thickness,
    bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TImplicitObjectScaled < TCapsu ...,
    const TRigidTransform < T, 3 >& Sta...,
    const TVector < T, 3 >& Dir,
    const T Length,
    T& OutTime,
    TVector < T, 3 >& OutPosition,
    TVector < T, 3 >& OutNormal,
    int32 & OutFaceIndex,
    const T Thickness,
    bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TImplicitObjectScaled < FConve ...,
    const TRigidTransform < T, 3 >& Sta...,
    const TVector < T, 3 >& Dir,
    const T Length,
    T& OutTime,
    TVector < T, 3 >& OutPosition,
    TVector < T, 3 >& OutNormal,
    int32 & OutFaceIndex,
    const T Thickness,
    bool bComputeMTD
)

Overridden from FImplicitObject

Name Description

Public function Virtual Const

const TAABB <...

 

BoundingBox()

Public function Virtual Const

uint16

 

GetMaterialIndex

(
    uint32 HintIndex
)

Public function Virtual Const

uint32

 

GetTypeHash()

Public function Virtual

void

 

Serialize

(
    FChaosArchive & Ar
)

Classes

Name

Description

Public struct

FData

Typedefs

Name

Description

FDataType

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback