tr>
<th>entity</th>
<th>category</th>
<th>bitmask</th>
</tr>
</thead>
<tbody>
<tr>
<td>sun</td>
<td>0000</td>
<td>0000</td>
</tr>
<tr>
<td>player</td>
<td>0001</td>
<td>1110</td>
</tr>
<tr>
<td>powerup</td>
<td>0010</td>
<td>1001</td>
</tr>
<tr>
<td>enemy</td>
<td>0100</td>
<td>1001</td>
</tr>
<tr>
<td>ground</td>
<td>1000</td>
<td>1111</td>
</tr>
</tbody>
</table>
<p>So how does it all come together and work?
When two entity&apos;s fixtures contact, a binary AND operation is performed again the entity&apos