FPhysXCooking

[FPhysXCooking](API\Runtime\PhysXCooking\FPhysXCooking). Cooks physics data.

Windows
MacOS
Linux

Inheritance Hierarchy

IPhysXCooking

FPhysXCooking

References

Module

PhysXCooking

Header

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

Include

#include "PhysXCooking.h"

Syntax

class FPhysXCooking : public IPhysXCooking

Remarks

FPhysXCooking. Cooks physics data.

Constructors

Name Description

Public function

FPhysXCooking()

Functions

Name Description

Public function Const

EPhysXCookin...

 

CookConvexImp

(
    FName Format,
    EPhysXMeshCookFlags CookFlags,
    const TArray< FVector >& SrcBuffer,
    TArray< uint8 >& OutBuffer,
    PxConvexMesh*& OutConvexMesh
)

Public function Const

bool

 

CookHeightFieldImp

(
    FName Format,
    FIntPoint HFSize,
    const void* Samples,
    uint32 SamplesStride,
    TArray< uint8 >& OutBuffer,
    PxHeightField*& OutHeightField
)

Public function Const

bool

 

CookTriMeshImp

(
    FName Format,
    EPhysXMeshCookFlags CookFlags,
    const TArray< FVector >& SrcVertic...,
    const TArray< FTriIndices >& SrcIn...,
    const TArray< uint16 >& SrcMateria...,
    const bool FlipNormals,
    TArray< uint8 >& OutBuffer,
    PxTriangleMesh*& OutTriangleMe...
)

Overridden from IPhysXCooking

Name Description

Public function Virtual Const

bool

 

AllowParallelBuild()

Checks whether parallel PhysX cooking is allowed.

Note: This method is not currently used yet.

Public function Virtual Const

EPhysXCookin...

 

CookConvex

(
    FName Format,
    EPhysXMeshCookFlags CookFlags,
    const TArray< FVector >& SrcBuffer,
    TArray< uint8 >& OutBuffer
)

Cooks the source convex data for the platform and stores the cooked data internally.

Public function Virtual Const

bool

 

CookHeightField

(
    FName Format,
    FIntPoint HFSize,
    const void* Samples,
    uint32 SamplesStride,
    TArray< uint8 >& OutBuffer
)

Cooks the source height field data for the platform and stores the cooked data internally.

Public function Virtual Const

bool

 

CookTriMesh

(
    FName Format,
    EPhysXMeshCookFlags CookFlags,
    const TArray< FVector >& SrcVertic...,
    const TArray< FTriIndices >& SrcIn...,
    const TArray< uint16 >& SrcMateria...,
    const bool FlipNormals,
    TArray< uint8 >& OutBuffer
)

Cooks the source Tri-Mesh data for the platform and stores the cooked data internally.

Public function Virtual Const

EPhysXCookin...

 

CreateConvex

(
    FName Format,
    EPhysXMeshCookFlags CookFlags,
    const TArray< FVector >& SrcBuffer,
    physx::PxConvexMesh*& OutBuffe...
)

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

Public function Virtual Const

bool

 

CreateHeightField

(
    FName Format,
    FIntPoint HFSize,
    const void* Samples,
    uint32 SamplesStride,
    physx::PxHeightField*& OutHeig...
)

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

Public function Virtual Const

bool

 

CreateTriMesh

(
    FName Format,
    EPhysXMeshCookFlags CookFlags,
    const TArray< FVector >& SrcVertic...,
    const TArray< FTriIndices >& SrcIn...,
    const TArray< uint16 >& SrcMateria...,
    const bool FlipNormals,
    physx::PxTriangleMesh*& OutTri...
)

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)

Public function Virtual Const

physx::PxCoo...

 

GetCooking()

Get the actual physx cooker object

Public function Virtual Const

void

 

GetSupportedFormats

(
    TArray< FName >& OutFormats
)

Gets the list of supported formats.

Public function Virtual Const

uint16

 

GetVersion

(
    FName Format
)

Gets the current version of the specified PhysX format.

Constants

Name

Description

UE_PHYSX_PC_VER

Version for PhysX format, this becomes part of the DDC key.

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