Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 598 Bytes

File metadata and controls

20 lines (12 loc) · 598 Bytes

Component that holds a callback called when the Entity it is attached to collides with another.

Specs

Members

onCollide

putils::function<void(Entity & self, Entity & other), KENGINE_COLLISION_FUNCTION_SIZE> onCollide;

Its maximum size defaults to 64 and can be adjusted by defining the KENGINE_COLLISION_FUNCTION_SIZE macro.