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

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