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() _, 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

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