I'm new in this forum and I'm using it to help me in my coding classes.
I just have one problem with a "car" program in java.
The objective is to move the car in the direction it is facing.
Moving forward in the normal position (when the angle is zero) means moving in the x-axis. Choosing to turn the car function (for example: 90º) and then using the forward function should move up or down the car in the y-axis. However the y-axis is not working.
I will leave here the code in bluej and what teacher wants me to do...
I hope that someones can teach me how to do this... I'm stuck.
PS: I don't know if someone in forum already posted this.
Car2 Demo.rarThe Problem to be solved.JPGmyanswer.JPGMoveforwardfunction.jpg