export function collide(dynamic: boolean, layers: Layer, mask: Layer, size: Vec3 = [1, 1, 1]) {
return (game: Game, entity: Entity) => {
game.World.Signature[entity] |= Has.Collide;
game.World.Collide[entity] = {
EntityId: entity,
New: true,
Dynamic: dynamic,
Layers: layers,
Mask: mask,
Size: size,
Min: [0, 0, 0],
Max: [0, 0, 0],
Center: [0, 0, 0],
Half: [0, 0, 0],
Collisions: [],
};
};
}