Hello. I have a problem:
i have an object, that moves towards a coordinate. i use turnTowards command. But my object doesn't just move, it also rotates towards a coordinate. I want it to stay as it is. How do i do that?


turnTowards(something); move(speed);
int oldRotation = getRotation(); turnTowards(something); move(speed); setRotation(oldRotation);
turnTowards(something); move(speed);
int oldRotation = getRotation(); turnTowards(something); move(speed); setRotation(oldRotation);