Monday, November 22, 2010

A serious schedule delay

No, I didn't get the collision detection to work.

I added a few lines of code to test for collision with the ground and that seems to work for any and all object shapes and sizes. Unfortunately, things are still wonky with object-to-object detection. I've eliminated the possibility of both matrix inversion and multiplication being the problem (there are easy tests to verify these), so that leaves me with the order of modelview transforms as my prime suspect.

Compounding the problem is that I've once again reverted to changing things willy-nilly, disregarding clean coding practice. It's really easy for things to spiral out of control when doing this, leaving you with a mess so convoluted it's nigh impossible to make sense of it. And when you don't have backups of how the code was written when it last functioned, things get ugly. For the computer. And my forehead.

1 comment:

  1. Be careful, mate. You don't want to encourage the balding!

    ReplyDelete