FTriMeshCollisionData

Description of triangle mesh collision data necessary for cooking physics data.

Windows
MacOS
Linux

References

Module

PhysicsCore

Header

/Engine/Source/Runtime/PhysicsCore/Public/Interface_CollisionDataProviderCore.h

Include

#include "Interface_CollisionDataProviderCore.h"

Syntax

struct FTriMeshCollisionData

Remarks

Description of triangle mesh collision data necessary for cooking physics data.

Variables

Name Description

Public variable

uint32: 1

 

bDeformableMesh

If mesh is deformable, we don't clean it, so that vertex layout does not change and it can be updated

Public variable

uint32: 1

 

bDisableActiveEdgePrecompute

Turn off ActiveEdgePrecompute (This makes cooking faster, but will slow contact generation)

Public variable

uint32: 1

 

bFastCook

Prioritize cooking speed over runtime speed

Public variable

uint32: 1

 

bFlipNormals

Does the mesh require its normals flipped (see PxMeshFlag)

Public variable

TArray< FTriInd...

 

Indices

Array of indices defining the ordering of triangles in the mesh

Public variable

TArray< uint16 ...

 

MaterialIndices

Array of optional material indices (must equal num triangles)

Public variable

TArray< TArray<...

 

UVs

Optional UV co-ordinates (each array must be zero of equal num vertices)

Public variable

TArray< FVector...

 

Vertices

Array of vertices included in the triangle mesh

Constructors

Name Description

Public function

FTriMeshCollisionData()

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