Ship movement #7

Closed
Scatt opened this Issue May 16, 2011 · 8 comments

3 participants

@Scatt
Collaborator

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
Collaborator

5 is max velocity right?

@Nitrodist Nitrodist closed this May 16, 2011
@Nitrodist Nitrodist reopened this May 16, 2011
@Scatt
Collaborator

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

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

@darcymiranda darcymiranda reopened this May 17, 2011
@darcymiranda

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

@Nitrodist
Collaborator

LOL, I know!

@darcymiranda

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

@darcymiranda
Owner

Scatt is working on it.

@darcymiranda

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.

@Nitrodist Nitrodist closed this Jul 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment