darcymiranda / revert

2 stars 0 forks source link

Ship movement #7

Closed Scatt closed 9 years ago

Scatt commented 13 years ago

The ship's movement is off. I didn't notice it at first but since you added the print out of the velocities it's very obvious.

For example:

If you are going right, and a tiny bit down, the x vel is goes to 5 and the y vel eventually creeps up to 5 as well, which should not happen. Xvel should only be 5 if you are going completely right or left as wel as Yvel being 5 for going completely up/down.

Going to need to look into it.

Nitrodist commented 13 years ago

5 is max velocity right?

Scatt commented 13 years ago

To make things clearer:

Say you're going completely right (90 degrees) then you go a little bit down (100 degrees), Yvel keeps adding so even though you're aimed at "100 degrees" you'll end up going 135 degrees. Which is bad.

darcymiranda commented 13 years ago

The code for this was pulled off the original revision of Revert, so it's fairly old and crappy :)

darcymiranda commented 13 years ago

Made same mistake as you Mark, WHY IS THE CLOSE BUTTON THERE

Nitrodist commented 13 years ago

LOL, I know!

darcymiranda commented 13 years ago

Who volunteers to redo my HORRIBLE movement code? That shit is dated and needs to be re-done.

darcymiranda commented 13 years ago

Scatt is working on it.

darcymiranda commented 13 years ago

Scatt tried to fix it up with his own re-write and different methodology with no success. It looks like we will just comment it out for now, go back to my old code and just patch it up the best we can.