Say I have an object in 2D space that can rotate and then should move according to its rotation angle.
For example:
If angle is 0(pointing upwards), then
on_timer
it should move 1 by Y and 0 by X.If angle is 45, then it should move 1 by Y and 1 by X.
If pointing 90 degrees, then 0 by Y and 1 by X.
If pointing 135 degrees, then -1 by Y and +1 by X, etc.
Do you know any functions for calculating this?