BitMasks is actually pretty easy. This example will show us how.
setupCollisionsmethod of our
Cycleclass, add the following code right after the lines where we add our
CycleClass_01.py. Then, save it as
WorldClass_02.pyand run it from the command prompt. Attempt to collide the two cycles together and we'll see them pass through each other, like in the following screenshot:
Our cycles don't collide anymore! That's because they are set to have ...