Monday, October 1, 2012

Finally Finalized Rotations



Yet another good news/bad news update. The good news, is that I've got proper rotations, and parenting all locked in. Previously, gimbal locking was preventing my fingers from bending properly. Given how many iterations of different rotation calculations I've been through, I'm pretty excited to be done with them for a while.

Unfortunately, the bad news is that my camera smoothing has completely broken. The problem stems from this: The ship, rotates between -180 and 180 degrees. So, if the ship goes below -180, or above 180, the smoothing detects a change of 300+ degrees from the last state detected, to the current one.

I've got a few ideas for workarounds, but I'm putting the camera smoothing to the side for now. It makes the movement look nicer, but isn't really a priority task at the moment. I've got enough missing functionality, to be caught up reworking what is already functional.

Also, I threw in a 'sky' dome, and some asteroids that sort of look like cookies. The environment is still randomly populated and is just there so I can actually tell where the ship is moving.