RigsofRods
Soft-body Physics Simulation
|
Public Member Functions | |
hash_coll_element_t (unsigned int cell_id_, int value) | |
bool | IsCollisionBox () const |
bool | IsCollisionTri () const |
Data Fields | |
unsigned int | cell_id |
int | element_index |
Values below ELEMENT_TRI_BASE_INDEX are collision box indices (Collisions::m_collision_boxes), values above are collision tri indices (Collisions::m_collision_tris). More... | |
Static Public Attributes | |
static const int | ELEMENT_TRI_BASE_INDEX = 1000000 |
Terrain is split into equal-size 'cells' of dimension CELL_SIZE, identified by CellID A hash table aggregates elements from multiple cells in one entry
Definition at line 104 of file Collisions.h.
|
inline |
Definition at line 108 of file Collisions.h.
|
inline |
Definition at line 110 of file Collisions.h.
|
inline |
Definition at line 111 of file Collisions.h.
unsigned int RoR::Collisions::hash_coll_element_t::cell_id |
Definition at line 113 of file Collisions.h.
int RoR::Collisions::hash_coll_element_t::element_index |
Values below ELEMENT_TRI_BASE_INDEX are collision box indices (Collisions::m_collision_boxes), values above are collision tri indices (Collisions::m_collision_tris).
Definition at line 117 of file Collisions.h.
|
static |
Definition at line 106 of file Collisions.h.