Can anyone figure out what this code does? I'm think someone gave me the code many moons ago but I've only just re-discovered it and cannot for the life of me figure out how it works.
x = x - (Math.cos(Math.toRadians(rotation))*speed) + Endeavour.xVelocity; y = y - (Math.sin(Math.toRadians(rotation))*speed) + Endeavour.yVelocity;