Struct CollBody

Component that attaches a primitive-shape collider to an object and registers it with the collision scene.

struct CollBody

Component that attaches a primitive-shape collider to an object and registers it with the collision scene.

Everything about the collider itself (size, shape, offset, masks, …) is set on ‘collider’ directly, see ‘Coll::Collider’.

Public Members

Coll::Collider collider = {}

Public Static Functions

static inline uint32_t getAllocSize(uint16_t *initData)
static void initDelete(Object &obj, CollBody *data, void *initData)
static void onEvent(Object &obj, CollBody *data, const ObjectEvent &event)

Public Static Attributes

static constexpr uint32_t ID = 5