FBodySetupShapeIterator

Helper struct for iterating over shapes in a body setup.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Physics/PhysicsGeometryPhysX.h

Include

#include "Physics/PhysicsGeometryPhysX.h"

Syntax

struct FBodySetupShapeIterator

Remarks

Helper struct for iterating over shapes in a body setup.

Constructors

Name Description

Public function

FBodySetupShapeIterator

(
    const FVector& InScale3D,
    const FTransform& InRelativeTM,
    bool bDoubleSidedTrimeshes
)

Functions

Name Description

Public function Const

float

 

ComputeContactOffset

(
    const PxSphereGeometry& PSphereGeo...
)

Public function Const

float

 

ComputeContactOffset

(
    const PxBoxGeometry& PBoxGeom
)

Public function Const

float

 

ComputeContactOffset

(
    const PxCapsuleGeometry& PCapsuleG...
)

Public function Const

float

 

ComputeContactOffset

(
    const PxConvexMeshGeometry& PConve...
)

Public function Const

float

 

ComputeContactOffset

(
    const PxTriangleMeshGeometry& PTri...
)

Public function Const

float

 

ComputeRestOffset

(
    physx::PxTriangleMesh*const&
)

Public function Const

void

 

ForEachShape

(
    const TArrayView< ElemType >& Elem...,
    TFunctionRef< void(const ElemType&...
)

Iterates over the elements array and creates the needed geometry and local pose.

Public function Const

void

 

ForEachShape

(
    const TArrayView< ElemType >& Elem...,
    TFunctionRef< void(const ElemType&...
)

Public function Static

void

 

GetContactOffsetParams

(
    float& InOutContactOffsetFactor,
    float& InOutMinContactOffset,
    float& InOutMaxContactOffset
)

Helper function to determine contact offset params

Public function Const

bool

 

PopulatePhysXGeometryAndTransform

(
    const FKSphereElem& SphereElem,
    PxSphereGeometry& OutGeometry,
    PxTransform& OutTM
)

Public function Const

bool

 

PopulatePhysXGeometryAndTransform

(
    const FKBoxElem& BoxElem,
    PxBoxGeometry& OutGeometry,
    PxTransform& OutTM
)

Public function Const

bool

 

PopulatePhysXGeometryAndTransform

(
    const FKSphylElem& SphylElem,
    PxCapsuleGeometry& OutGeometry,
    PxTransform& OutTM
)

Public function Const

bool

 

PopulatePhysXGeometryAndTransform

(
    const FKConvexElem& ConvexElem,
    PxConvexMeshGeometry& OutGeometry,
    PxTransform& OutTM
)

Public function Const

bool

 

PopulatePhysXGeometryAndTransform

(
    PxTriangleMesh*const& TriMesh,
    PxTriangleMeshGeometry& OutGeometr...,
    PxTransform& OutTM
)

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