i'm unsure how to make this work. if the player moves the second joystick (represented by joyroll() for leftright and joyz() for updown) i want to translate that into the rotateentity that's correct for pointing the turret in that direction. move it upper left, turret should rotate to upper left.
i am clueless about how to do the math for this.
can anyone help?
i think i need some trig! but don't know what exactly. :(
(ps its a robotron style controlled game - one joystick for move, the other for shooting direction)
i am clueless about how to do the math for this.
can anyone help?
i think i need some trig! but don't know what exactly. :(
(ps its a robotron style controlled game - one joystick for move, the other for shooting direction)