APEX Destructible Module: nvidia::apex::DestructibleActorJointDesc Class Reference

NVIDIA APEX

nvidia::apex::DestructibleActorJointDesc Class Reference

#include <DestructibleActorJoint.h>

List of all members.

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]
DestructibleActordestructible [2]
int32_t attachmentChunkIndex [2]
PxVec3 globalAnchor [2]
 global attachment positions
PxVec3 globalAxis [2]
 global axes
PxVec3 globalNormal [2]
 global normals

Detailed Description

Descriptor used to create the Destructible actor joint.


Constructor & Destructor Documentation

PX_INLINE nvidia::apex::DestructibleActorJointDesc::DestructibleActorJointDesc ( )

constructor sets to default.


Member Function Documentation

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.


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

physx::PxJointConcreteType::Enum nvidia::apex::DestructibleActorJointDesc::type

PhysX SDK 3.X only.


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

Generated on Fri Dec 15 2017 13:58:22

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