Monday, December 5, 2011

Sprint #7

Task: Figure out collision categories and make lights bigger

My first task was to figure out collision categories so that shadows will only collide with shadows and real-world things will only collide with real-world things.  This can be accomplished by assigning the fixtures of the shadows to a certain category (I chose 2) and everything else to another (I chose 1).  Then you just say that Cat2's only collide with Cat2's and so on.  My other task was to make the light bigger which was mostly making the texture bigger and making sure the collision code matched up.

This picture shows the bigger light and that even though the shadows on the boxes have fixtures the character is not colliding with them.