#include <DestructibleAsset.h>
Public Member Functions | |
PX_INLINE | DestructibleGeometryDesc () |
constructor sets to default. | |
PX_INLINE void | setToDefault () |
(re)sets the structure to the default. | |
PX_INLINE bool | isValid () const |
Public Attributes | |
const nvidia::ExplicitHierarchicalMesh::ConvexHull ** | convexHulls |
uint32_t | convexHullCount |
const CollisionVolumeDesc * | collisionVolumeDesc |
Destructible authoring structure.
Descriptor to build one chunk in a fracture hierarchy.
PX_INLINE nvidia::apex::DestructibleGeometryDesc::DestructibleGeometryDesc | ( | ) |
constructor sets to default.
PX_INLINE bool nvidia::apex::DestructibleGeometryDesc::isValid | ( | ) | const |
Returns true iff an object can be created using this descriptor.
PX_INLINE void nvidia::apex::DestructibleGeometryDesc::setToDefault | ( | ) |
(re)sets the structure to the default.
If convexHullCount = 0, then collisionVolumeDesc must not be NULL. In this case convex hulls will automatically be created for this geometry. See CollisionVolumeDesc.
The length of the convexHulls array. If this is positive, then convexHulls must point to a valid array of this size. If this is zero, then collisionVolumeDesc must not be NULL, and convex hulls will be automatically created for this geometry using collisionVolumeDesc.
const nvidia::ExplicitHierarchicalMesh::ConvexHull** nvidia::apex::DestructibleGeometryDesc::convexHulls |
The convex hulls associated with this chunk. These may be obtained from ExplicitHierarchicalMesh::convexHulls() if authoring using an ExplicitHierarchicalMesh. The length of the array is given by convexHullCount.