#include <DestructibleActorJoint.h>
Public Member Functions | |
PX_INLINE | DestructibleActorJointDesc () |
constructor sets to default. | |
PX_INLINE void | setToDefault () |
Resets descriptor to default settings. | |
PX_INLINE bool | isValid () const |
Public Attributes | |
physx::PxJointConcreteType::Enum | type |
PxRigidActor * | actor [2] |
PxVec3 | localAxis [2] |
PxVec3 | localAnchor [2] |
PxVec3 | localNormal [2] |
DestructibleActor * | destructible [2] |
int32_t | attachmentChunkIndex [2] |
PxVec3 | globalAnchor [2] |
global attachment positions | |
PxVec3 | globalAxis [2] |
global axes | |
PxVec3 | globalNormal [2] |
global normals |
Descriptor used to create the Destructible actor joint.
PX_INLINE nvidia::apex::DestructibleActorJointDesc::DestructibleActorJointDesc | ( | ) |
constructor sets to default.
PX_INLINE bool nvidia::apex::DestructibleActorJointDesc::isValid | ( | ) | const |
Returns true iff an object can be created using this descriptor.
PX_INLINE void nvidia::apex::DestructibleActorJointDesc::setToDefault | ( | ) |
Resets descriptor to default settings.
PxRigidActor* nvidia::apex::DestructibleActorJointDesc::actor[2] |
PhysX SDK 3.X only.
If destructible[i] is not NULL and attachmentChunkIndex[i] is a valid chunk index within that destructible, then that chunk will be used for attachment. If destructible[i] is not NULL and attachmentChunkIndex[i] is NOT a valid chunk index (such as the default ModuleDestructibleConst::INVALID_CHUNK_INDEX), then the nearest chunk to globalAnchor[i] is used instead. Once a chunk is determined, the chunk's associated PxActor will be the PxJoint's attachment actor.
If destructible[i] is not NULL, it will effectively replace the actor[i] in jointDesc. At least one must be non-NULL.
global attachment positions
Global attachment data. Since destructibles come apart, there is no single referece frame associated with them. Therefore it makes more sense to use a global reference frame when describing the attachment positions and axes.
global axes
global normals
PhysX SDK 3.X only.
PhysX SDK 3.X only.
PhysX SDK 3.X only.
physx::PxJointConcreteType::Enum nvidia::apex::DestructibleActorJointDesc::type |
PhysX SDK 3.X only.