Hi.
So i am having troubles with rotating by bitmap at, i am using atand.
Everything works fine when posy is bigger than pos2y, but when it is otherwise, AtanD won't return me a value in degrees, that would rotate my sprite down.
It sounds kinda weird, but it returns values only that can rotate in up. So it can be rotated:
_\|/_
in all these directions, but not opposite
So i am having troubles with rotating by bitmap at, i am using atand.
B4X:
rot3 = ATanD((posx - pos2x)/(posy - pos2y)*-1)
Everything works fine when posy is bigger than pos2y, but when it is otherwise, AtanD won't return me a value in degrees, that would rotate my sprite down.
It sounds kinda weird, but it returns values only that can rotate in up. So it can be rotated:
_\|/_
in all these directions, but not opposite