# Minor Mathematical Convention Angle Bug

Bugs will be moved here once resolved.

### » Mon Sep 21, 2015 10:02 pm

Problem Description
Under all normal circumstances positive angles (less than pi and greater than 0) are measured in the +y direction on a Cartesian coordinate system. However, in Construct it maps negative angles to the +y axis on the Cartesian coordinate system.

Attach a Capx

Description of Capx
Angle bug display.

Steps to Reproduce Bug
• See capx.

Observed Result
The angle is mapped incorrectly to the Cartesian axis.

Expected Result
I expect that positive angles should map to the +y axis and negative angles should map to the -y axis.

Affected Browsers
• Probably all.

Operating System and Service Pack
Win7 Prof.

Construct 2 Version ID
r206

Please let me know if you actually fix this bug, as I have a manual transform in my code to account for this.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,414
Reputation: 4,822

### » Mon Sep 21, 2015 11:03 pm

Not a bug, and actually your expected result is working correctly since +y is down, not up. Even that isn't a bug as that's a perfectly acceptable and is a very common convention used with computers.
B
91
S
31
G
102
Posts: 5,232
Reputation: 67,250

### » Tue Sep 22, 2015 4:38 pm

As per most game engines/computer graphics APIs, Construct 2 increases the Y axis downwards with the origin in the top-left of the screen. So actually it's "correct" in that positive angles increase towards the positive Y direction, which is actually downwards.

We could never change this, anyway: altering something so fundamental to game logic would break just about every game ever built with C2, and make for a lot of angry customers!
Scirra Founder
B
387
S
230
G
87
Posts: 24,248
Reputation: 192,226

### » Wed Sep 23, 2015 4:18 pm

Oh, that is odd. Okay, I will make note of that for my future work. I don't like it, but that will have to do.

I am coming from an engineering background, so I am used to working with standards.

Ashley wrote:We could never change this, anyway: altering something so fundamental to game logic would break just about every game ever built with C2, and make for a lot of angry customers!

I can't argue with that. :-p
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,414
Reputation: 4,822

### » Wed Sep 23, 2015 4:30 pm

Our standards are much lower than yours, literally.
B
168
S
50
G
163
Posts: 8,220
Reputation: 105,059

### » Wed Sep 23, 2015 8:34 pm

https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,414
Reputation: 4,822