# 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
I don't check the forums much anymore, but I will receive an email for PMs.

"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
23
S
6
G
1
Posts: 1,419
Reputation: 4,867

### » 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
101
S
39
G
134
Posts: 5,591
Reputation: 85,520

### » 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
415
S
248
G
92
Posts: 25,291
Reputation: 200,966

### » 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
I don't check the forums much anymore, but I will receive an email for PMs.

"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
23
S
6
G
1
Posts: 1,419
Reputation: 4,867

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

Our standards are much lower than yours, literally.
B
179
S
50
G
208
Posts: 8,721
Reputation: 128,810

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

https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"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
23
S
6
G
1
Posts: 1,419
Reputation: 4,867