craftybox
craftybox copied to clipboard
Control which objects collide with which
trafficstars
For example, some entity can go through wall, etc
Crafty has the Gravity component with a .gravity(comp) to specify which component whose entity should stop the current entity from falling.
In Box2D, a static object will stop the entity. You can specify which object that the current object can bypass that collision. Quite a contrast.
In Box2D, there is categoryBits and maskBits that would define it. Just need to figure out a good way to implement.