|
Nudge Physics
A single file, header-only 3D physics library
|
This struct is used to access all the colliders in the physic world. More...
#include <nudge.h>
Public Attributes | ||
| struct { | ||
| uint16_t * tags | ||
| BoxCollider * data | ||
| Transform * transforms | ||
| uint32_t count | ||
| } | boxes | |
| struct { | ||
| uint16_t * tags | ||
| SphereCollider * data | ||
| Transform * transforms | ||
| uint32_t count | ||
| } | spheres | |
This struct is used to access all the colliders in the physic world.
| uint16_t* nudge::ColliderData::tags |
array of the collider unique identifiers of size count (do not touch)
| BoxCollider* nudge::ColliderData::data |
array of BoxCollider structs of size count
| Transform* nudge::ColliderData::transforms |
array of Transform structs of size count, also used to get the body this collider belongs to
| uint32_t nudge::ColliderData::count |
the number of box colliders
the number of sphere colliders
| struct { ... } nudge::ColliderData::boxes |
Anonymous struct instance used to access all the box colliders
| SphereCollider* nudge::ColliderData::data |
array of SphereCollider structs of size count
| struct { ... } nudge::ColliderData::spheres |
Anonymous struct instance used to access all the shpere colliders