IPhysXCooking::CreateConvex

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)

Windows
MacOS
Linux

References

Module

PhysicsCore

Header

/Engine/Source/Runtime/PhysicsCore/Public/IPhysXCooking.h

Include

#include "IPhysXCooking.h"

Syntax

EPhysXCookingResult CreateConvex
(
    FName Format,
    EPhysXMeshCookFlags CookFlags,
    const TArray< FVector > & SrcBuffer,
    physx::PxConvexMesh *& OutBuffer
) const

Remarks

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)

Returns

The cooked convex mesh geometry

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