ug4
|
#include <collision_element_info.h>
Public Member Functions | |
CollisionElementID () | |
CollisionElementID (int i) | |
CollisionElementID (void *p) | |
bool | is_valid () |
bool | operator== (const CollisionElementID &id) const |
Public Attributes | |
union { | |
int m_intID | |
void * m_ptrID | |
}; | |
This struct allows to specify a pointer or an integer-id that shall be stored with each element (edge or triangle) in a collision-tree.
Note that only a pointer or an integer may be stored not both at the same time.
If you construct an empty CollisionElementID, it will be set to invalid by default. Note that an integer value of -1 marks the CollisionElementID as invalid.
|
inline |
|
inline |
References p.
|
inline |
|
inline |
References m_intID.
|
inline |
References m_ptrID.
union { ... } |
int ug::node_tree::CollisionElementID::m_intID |
Referenced by is_valid().
void* ug::node_tree::CollisionElementID::m_ptrID |
Referenced by operator==().