#include <NxDestructibleActorJoint.h>
Public Member Functions | |
| PX_INLINE | NxDestructibleActorJointDesc () |
| constructor sets to default. | |
| PX_INLINE void | setToDefault () |
| Resets descriptor to default settings. | |
| PX_INLINE bool | isValid () const |
Public Attributes | |
| NxJointDesc * | jointDesc |
| PxJointConcreteType::Enum | type |
| PxRigidActor * | actor [2] |
| PxVec3 | localAxis [2] |
| PxVec3 | localAnchor [2] |
| PxVec3 | localNormal [2] |
| NxDestructibleActor * | destructible [2] |
| physx::PxI32 | attachmentChunkIndex [2] |
| physx::PxVec3 | globalAnchor [2] |
| global attachment positions | |
| physx::PxVec3 | globalAxis [2] |
| global axes | |
| physx::PxVec3 | globalNormal [2] |
| global normals | |
Descriptor used to create the Destructible actor joint.
| PX_INLINE physx::apex::NxDestructibleActorJointDesc::NxDestructibleActorJointDesc | ( | ) |
constructor sets to default.
| PX_INLINE bool physx::apex::NxDestructibleActorJointDesc::isValid | ( | ) | const |
Returns true iff an object can be created using this descriptor.
| PX_INLINE void physx::apex::NxDestructibleActorJointDesc::setToDefault | ( | ) |
Resets descriptor to default settings.
| PxRigidActor* physx::apex::NxDestructibleActorJointDesc::actor[2] |
PhysX SDK 3.X only.
| physx::PxI32 physx::apex::NxDestructibleActorJointDesc::attachmentChunkIndex[2] |
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 NxModuleDestructibleConst::INVALID_CHUNK_INDEX), then the nearest chunk to globalAnchor[i] is used instead. Once a chunk is determined, the chunk's associated NxActor will be the NxJoint'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.
| physx::PxVec3 physx::apex::NxDestructibleActorJointDesc::globalAnchor[2] |
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.
| physx::PxVec3 physx::apex::NxDestructibleActorJointDesc::globalAxis[2] |
global axes
| physx::PxVec3 physx::apex::NxDestructibleActorJointDesc::globalNormal[2] |
global normals
| NxJointDesc* physx::apex::NxDestructibleActorJointDesc::jointDesc |
PhysX SDK 2.8.X only. The PhysX SDK joint descriptor. Note - localAnchor[i], localAxis[i], and localNormal[i] are not used if actor[i] is part of an NxDestructibleActor.
PhysX SDK 3.X only.
PhysX SDK 3.X only.
PhysX SDK 3.X only.
| PxJointConcreteType::Enum physx::apex::NxDestructibleActorJointDesc::type |
PhysX SDK 3.X only.