PhysX SDK 3.2 API Reference: PxCookingParams Struct Reference

PhysX SDK 3.2 API

PxCookingParams Struct Reference
[Cooking]

Structure describing parameters affecting mesh cooking. More...

#include <PxCooking.h>

List of all members.


Public Member Functions

 PxCookingParams ()

Public Attributes

PxPlatform::Enum targetPlatform
 Target platform.
float skinWidth
 Skin width for convexes.
bool suppressTriangleMeshRemapTable
 When true, the face remap table is not created. This saves a significant amount of memory, but the SDK will not be able to provide information about which mesh triangle is hit in collisions, sweeps or raycasts hits.
bool buildTriangleAdjacencies
 When true, the triangle adjacency information is created. You can get the adjacency triangles for a given triangle from getTriangle.

Detailed Description

Structure describing parameters affecting mesh cooking.

See also:
PxSetCookingParams() PxGetCookingParams()

Constructor & Destructor Documentation

PxCookingParams::PxCookingParams (  )  [inline]


Member Data Documentation

When true, the triangle adjacency information is created. You can get the adjacency triangles for a given triangle from getTriangle.

Default value: false

Skin width for convexes.

Specifies the amount to inflate the convex mesh by when the new convex hull generator is used.

Inflating the mesh allows the user to hide interpenetration errors by increasing the size of the collision mesh with respect to the size of the rendered geometry.

Default value: 0.025f

When true, the face remap table is not created. This saves a significant amount of memory, but the SDK will not be able to provide information about which mesh triangle is hit in collisions, sweeps or raycasts hits.

Default value: false

Target platform.

Should be set to the platform which you intend to load the cooked mesh data on. This allows the SDK to optimize the mesh data in an appropriate way for the platform and make sure that endianness issues are accounted for correctly.

Default value: Same as the platform on which the SDK is running.


The documentation for this struct was generated from the following file:



Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com