Hi!
I want to Move an Object (in 2D) in the direction of a specified angle.
In the past I used something like this:
x :=x + Round(Cos256(angle)*Speed);
y :=y + Round(Sin256(angle)*Speed);
(Cos/Sin256 are from DelphiX)
But this allows only an angle from 0 to 255.
Ho can I realize this for 0 to 360AŹ
Bookmarks