The math is pretty simple
No more thinking up is up. It is now forward. You have to add to x and y for up and down.
Up.
import math def get_direction(angle): rad = math.radians(angle) return math.cos(rad), math.sin(rad)You might have to adjust angle for math to work as expected. Like 90, 180, -90.
No more thinking up is up. It is now forward. You have to add to x and y for up and down.
Up.
direction = get_direction(angle) x += direction[0] * dt * 100 y += direction[1] * dt * 100
99 percent of computer problems exists between chair and keyboard.