Collision

Event flag. Functions with this attribute will listen for collision events only for the instance selected in the arguments (by name and / or tag).

struct Collision {}

Members

Variables

name
string name;

Component name

tag
string tag;

Component tag.

Examples

@Collision("Wolf")
void onWolfCollision(Instance wolf) { ... }

Meta