CodePudding user response:
I can give a train of thought, the current coordinates to polar coordinates, and then calculate the position after 138 degrees 10 meters, then turn it back cross coordinate system,High school mathematics is very important. It's a pity that I don't remember,
CodePudding user response:
Perfect don't thankCodePudding user response:
Pythagorean theorem know hypotenuse 10 with the Angle of 138Calculate the edge y and limb x
Then move x y
CodePudding user response:
Calculation in the game space, had better use vector.