Is Variable A clockwise from Variable B

Get help using Construct 2

Post » Wed Jan 22, 2014 3:51 pm

I'm trying to detect if one variable is clockwise from another.

I know I can do that with a sprite's "angle is clockwise" but I need to do it with two variables.

thanks.
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

Post » Wed Jan 22, 2014 5:22 pm

If sin(a-b)>0 then a is clockwise from b.
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Wed Jan 22, 2014 5:44 pm

R0J0hound makes me miss school.
Image ImageImage
B
168
S
50
G
164
Posts: 8,227
Reputation: 105,573

Post » Wed Jan 22, 2014 7:39 pm

That got it! Awesome! & Thank you!
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074


Return to How do I....?

Who is online

Users browsing this forum: mekonbekon, Yahoo [Bot], yippiez and 11 guests