Collisions, Code Cleaning
Posted by Eugene / 30th October 2009 in IGFEB09 - Team A, Production Diaries

Managed to fix the problem with the bullets firing through the walls. The position vector of the bullets was not being updated when it was fired, the bullet was only getting updated when the process function was called. I added a couple of functions to update the position and velocity of each of the bullets and called this in the process and when the bullet is fired. As a result the bullets were returning the correct position when requested.
The bullets are now stopped by the walls in the level however they do travel through the walls slightly. I am not sure why this is happening and is something I will probably have to look into during beta. Aaron brought up the problem of bullets colliding when they are not supposed to. A player can sit next to another player, fire away from them and the bullets will still collide with the other player. This will probably be another beta bug fix.
Spent some time cleaning up the code I have written so far, adding function comments and some comments within the functions themselves. Removed redundant code that had been commented out for some time in the source code. Will continue to do this tomorrow to get the code ready and polished for the Alpha submission.
