FConvex

Windows
MacOS
Linux

Inheritance Hierarchy

FImplicitObject

FConvex

References

Module

Chaos

Header

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

Include

#include "Chaos/Convex.h"

Syntax

class FConvex : public Chaos::FImplicitObject

Constructors

Name Description

Public function

FConvex()

Public function

FConvex

(
    const FConvex&
)

Public function

FConvex

(
    FConvex&& Other
)

Public function

FConvex

(
    const TParticles< FReal, 3 >& InPa...
)

Public function

FConvex

(
    TArray< TPlaneConcrete< FReal, 3 >>...,
    TParticles< FReal, 3 >&& InSurface...
)

NOTE: This constructor will result in approximate COM and volume calculations, since it does not have face indices for surface particles.

Functions

Name Description

Public function Const

FVec3

 

GetCenter()

Public function Const

const FVec3

 

GetCenterOfMass()

Public function Const

const TArray...

 

GetFaces()

Public function Const

const FMatri...

 

GetInertiaTensor

(
    const FReal Mass
)

Public function Const

FReal

 

GetMargin()

Public function Const

const TParti...

 

GetSurfaceParticles()

Public function Const

const FReal

 

GetVolume()

Public function

void

 

SerializeImp

(
    FArchive& Ar
)

Public function

void

 

SimplifyGeometry()

Public function Static

constexpr EI...

 

StaticType()

Public function Const

FVec3

 

Support

(
    const FVec3& Direction,
    const FReal Thickness
)

Public function Const

FVec3

 

Support2

(
    const FVec3& Direction
)

Overridden from FImplicitObject

Name Description

Public function Virtual Const

const TAABB<...

 

BoundingBox()

Public function Virtual Const

int32

 

FindClosestFaceAndVertices

(
    const FVec3& Position,
    TArray< FVec3 >& FaceVertices,
    FReal SearchDist
)

Finds the first intersecting face at given position

Public function Virtual Const

Pair< FVec3,...

 

FindClosestIntersectionImp

(
    const FVec3& StartPoint,
    const FVec3& EndPoint,
    const FReal Thickness
)

Public function Virtual Const

FVec3

 

FindGeometryOpposingNormal

(
    const FVec3& DenormDir,
    int32 FaceIndex,
    const FVec3& OriginalNormal
)

Given a normal and a face index, compute the most opposing normal associated with the underlying geometry features.

Public function Virtual Const

int32

 

FindMostOpposingFace

(
    const FVec3& Position,
    const FVec3& UnitDir,
    int32 HintFaceIndex,
    FReal SearchDist
)

Returns the most opposing face.

Public function Virtual Const

uint32

 

GetTypeHash()

Public function Virtual Const

bool

 

IsPerformanceWarning()

Public function Virtual Const

bool

 

IsValidGeometry()

Public function Virtual

FString

 

PerformanceWarningAndSimplifaction()

Public function Virtual Const

FReal

 

PhiWithNormal

(
    const FVec3& x,
    FVec3& Normal
)

Public function Virtual Const

bool

 

Raycast

(
    const FVec3& StartPoint,
    const FVec3& Dir,
    const FReal Length,
    const FReal Thickness,
    FReal& OutTime,
    FVec3& OutPosition,
    FVec3& OutNormal,
    int32& OutFaceIndex
)

Calls [GJKRaycast()](API\Runtime\Chaos\Chaos\Chaos__GJKRaycast)_, which may return true but 0 for `OutTime, which means the bodies are touching, but not by enough to determine OutPosition_ and OutNormal_ should be.

Public function Virtual

void

 

Serialize

(
    FChaosArchive& Ar
)

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Public function Virtual Const

FString

 

ToString()

Typedefs

Name

Description

TType

Constants

Name

Description

D

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss