Nudge Physics
A single file, header-only 3D physics library
|
Per-body struct that contains the indices of the body colliders inside ColliderData::boxes and ColliderData::spheres. More...
#include <nudge.h>
Public Attributes | |
uint16_t | num_boxes |
int16_t | first_box_index |
uint16_t | num_spheres |
int16_t | first_sphere_index |
Per-body struct that contains the indices of the body colliders inside ColliderData::boxes and ColliderData::spheres.
uint16_t nudge::BodyLayout::num_boxes |
the number of box colliders this body owns
int16_t nudge::BodyLayout::first_box_index |
the index of the first box collider in ColliderData::boxes (box colliders are assumed to be contiguous, with no fragmentation), or -1
uint16_t nudge::BodyLayout::num_spheres |
the number of sphere colliders this body owns
int16_t nudge::BodyLayout::first_sphere_index |
the index of the first sphere collider in ColliderData::spheres (sphere colliders are assumed to be contiguous, with no fragmentation), or -1