AGX Dynamics 2.41.3.0
Loading...
Searching...
No Matches
agx::MergedBody::MergedBodyIndex Struct Reference

Object with index of merged body and the original index of a merged object. More...

#include <MergedBody.h>

Public Member Functions

 MergedBodyIndex ()
 Default constructor initializes both indices to Invalid Index.
 
 MergedBodyIndex (agx::Physics::RigidBodyPtr rb, agx::Physics::RigidBodyPtr orgRb)
 Construct given object associated to index, and an original object associated to originalIndex.
 
agx::Bool isMerged () const
 

Public Attributes

UInt index
 
UInt originalIndex
 

Detailed Description

Object with index of merged body and the original index of a merged object.

Definition at line 81 of file MergedBody.h.

Constructor & Destructor Documentation

◆ MergedBodyIndex() [1/2]

agx::MergedBody::MergedBodyIndex::MergedBodyIndex ( )
inline

Default constructor initializes both indices to Invalid Index.

Definition at line 86 of file MergedBody.h.

References agx::InvalidIndex.

◆ MergedBodyIndex() [2/2]

agx::MergedBody::MergedBodyIndex::MergedBodyIndex ( agx::Physics::RigidBodyPtr  rb,
agx::Physics::RigidBodyPtr  orgRb 
)
inline

Construct given object associated to index, and an original object associated to originalIndex.

Definition at line 92 of file MergedBody.h.

References agx::InvalidIndex.

Member Function Documentation

◆ isMerged()

agx::Bool agx::MergedBody::MergedBodyIndex::isMerged ( ) const
inline
Returns
true if index != originalIndex, i.e., object considered merged

Definition at line 98 of file MergedBody.h.

References agx::InvalidIndex.

Member Data Documentation

◆ index

UInt agx::MergedBody::MergedBodyIndex::index

Definition at line 100 of file MergedBody.h.

◆ originalIndex

UInt agx::MergedBody::MergedBodyIndex::originalIndex

Definition at line 101 of file MergedBody.h.


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