#include <ExplicitHierarchicalMesh.h>
Public Member Functions | |
CollisionDesc () | |
void | setToDefault () |
Public Attributes | |
unsigned | mDepthCount |
CollisionVolumeDesc * | mVolumeDescs |
float | mMaximumTrimming |
Collision descriptor
nvidia::apex::CollisionDesc::CollisionDesc | ( | ) | [inline] |
Constructor sets default values.
void nvidia::apex::CollisionDesc::setToDefault | ( | ) | [inline] |
Set CollisionDesc to default values
How many collision volume descriptors are in the mVolumeDescs array.
This count need not match the depth count of the destructible to be created. If it is greater than the depth count of the destructible, the extra volume descriptors will be ignored. If it is less than the depth count of the destructible, then mVolumeDescs[depthCount-1] will be used unless depthCount is zero. In that case, the defeult CollisionVolumeDesc() will be used.
This may be zero, in which case all volume descriptors will be the default values. If it is not zero, mVolumeDescs must be a valid pointer.
The maximum amount to trim overlapping collision hulls (as a percentage of the hulls' widths)
Default = 0.2f
Array of volume descriptors of length depthCount (may be NULL if depthCount is zero).