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
94
S
33
G
113
Posts: 5,353
Reputation: 73,267

Post » Wed Jan 22, 2014 5:44 pm

R0J0hound makes me miss school.
Image ImageImage
B
170
S
50
G
178
Posts: 8,378
Reputation: 112,925

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: No registered users and 10 guests