|
I'm confused |
neil dwyer
Member #7,237
May 2006
|
I want player1 to move at its rotation angle when pressing forward(w). When I implement the trigonometry, which I am fairly new to, the player doesn't rotate.
|
_Dante
Member #7,398
June 2006
|
You're using a number of fixed point math routines, but not converting your ints to fixed point. (Also, player1_movement() is defined as returning int, so you should either return something or change it to void). Like so:
Rotates as nice as you please. ----------------------------- |
Evert
Member #794
November 2000
|
Quote: #include <iostream.h> It's #include <iostream>, iostream.h is obsolete. |
neil dwyer
Member #7,237
May 2006
|
Ok, its rotating right now, thank you for that, but it still isn't going in the direction it is facing when I press forward. Edit: Nevermind, stupid me forgot to do the trig for the x value.:P |
|