Public Member Functions | Public Attributes
physx::apex::NxDestructibleActorJointDesc Class Reference

#include <NxDestructibleActorJoint.h>

List of all members.

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]
NxDestructibleActordestructible [2]
physx::PxI32 attachmentChunkIndex [2]
physx::PxVec3 globalAnchor [2]
 global attachment positions
physx::PxVec3 globalAxis [2]
 global axes
physx::PxVec3 globalNormal [2]
 global normals

Detailed Description

Descriptor used to create the Destructible actor joint.


Constructor & Destructor Documentation

PX_INLINE physx::apex::NxDestructibleActorJointDesc::NxDestructibleActorJointDesc ( )

constructor sets to default.


Member Function Documentation

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.


Member Data Documentation

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 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.

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 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.

PhysX SDK 3.X only.


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

Generated on Mon Apr 28 2014 08:01:20

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