hi
can i move an image in libgdx to direction in angle??
like i have a car an i want it to move it straight forwoard now if i change the angle of the image it should go forwoard on this direction...
like in the picture..
is it possible? i want to draw the image in a specific angle and i would like to move it forwoard on this angle...
Batch.DrawRegion3(ballFrames(0,ballint) ,ball.x,ball.y,ball.w/2,ball.h/2,ball.w,ball.h,1,1,15)
does anyone know how to calculate the new x y depend on the angle?
maybe sinus cosinus??
can i move an image in libgdx to direction in angle??
like i have a car an i want it to move it straight forwoard now if i change the angle of the image it should go forwoard on this direction...
like in the picture..
is it possible? i want to draw the image in a specific angle and i would like to move it forwoard on this angle...
Batch.DrawRegion3(ballFrames(0,ballint) ,ball.x,ball.y,ball.w/2,ball.h/2,ball.w,ball.h,1,1,15)
does anyone know how to calculate the new x y depend on the angle?
maybe sinus cosinus??