Saturday, March 10, 2012
Collision System
So it took almost a whole day of debugging and trying different things but I finally go the ball and box collision system working. I thought my math was right, and for the most part it was, but it took me a long time that my local variables weren't initializing the way I thought they were. I was trying to hold the position of the sphere in an object on my SphereObject but this just wasn't working and I didn't know it right away. I was using the debugger to pour through different areas of my code to figure it all out. so instead I used the object's LocalToWorld matrix to get it's current translation and now we are in business. What a hassle that was! alright... back to work.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment