FPhysXCooking::CreateTriMesh

Cooks the source Tri-Mesh data for the platform and returns the PhysX geometry directly (meant for runtime when you just need the geometry directly without serializing out)

Windows
MacOS
Linux

Override Hierarchy

IPhysXCooking::CreateTriMesh()

FPhysXCooking::CreateTriMesh()

References

Module

PhysXCooking

Header

/Engine/Source/Runtime/PhysXCooking/Public/PhysXCooking.h

Include

#include "PhysXCooking.h"

Source

/Engine/Source/Runtime/PhysXCooking/Private/PhysXCooking.cpp

Syntax

virtual bool CreateTriMesh
(
    FName Format,
    EPhysXMeshCookFlags CookFlags,
    const TArray< FVector > & SrcVertices,
    const TArray< FTriIndices > & SrcIndices,
    const TArray< uint16 > & SrcMaterialIndices,
    const bool FlipNormals,
    physx::PxTriangleMesh *& OutTriangleMesh
) const

Remarks

Cooks the source Tri-Mesh data for the platform and returns the PhysX geometry directly (meant for runtime when you just need the geometry directly without serializing out)

Returns

true on success, false otherwise.

Parameters

Parameter

Description

Format

The desired format.

CookFlags

Flags used to provide options for this cook

SrcBuffer

The source buffer.

OutBuffer

The resulting cooked data.

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