FPhysXCooking::CookHeightField

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

Windows
MacOS
Linux

Override Hierarchy

IPhysXCooking::CookHeightField()

FPhysXCooking::CookHeightField()

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 CookHeightField
(
    FName Format,
    FIntPoint HFSize,
    const void * Samples,
    uint32 SamplesStride,
    TArray< uint8 > & OutBuffer
) const

Remarks

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

Returns

true on success, false otherwise.

Parameters

Parameter

Description

Format

The desired format

HFSize

Size of height field [NumColumns, NumRows]

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