Module |
|
Header |
/Engine/Source/Runtime/PhysicsCore/Public/IPhysXCooking.h |
Include |
#include "IPhysXCooking.h" |
bool CreateTriMesh
(
FName Format,
EPhysXMeshCookFlags CookFlags,
const TArray< FVector > & SrcVertices,
const TArray< struct FTriIndices > & SrcIndices,
const TArray< uint16 > & SrcMaterialIndices,
const bool FlipNormals,
physx::PxTriangleMesh *& OutTriangleMesh
) const
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)
true on success, false otherwise.
Parameter |
Description |
---|---|
Format |
The desired format. |
CookFlags |
Flags used to provide options for this cook |
SrcBuffer |
The source buffer. |
OutBuffer |
The resulting cooked data. |