Minor Mathematical Convention Angle Bug

Bugs will be moved here once resolved.

Post » 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
https://drive.google.com/file/d/0B-xiqK ... sp=sharing

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
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » 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
92
S
32
G
110
Posts: 5,298
Reputation: 71,507

Post » 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
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

Post » 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
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Wed Sep 23, 2015 4:30 pm

Our standards are much lower than yours, literally.
Image ImageImage
B
169
S
50
G
174
Posts: 8,331
Reputation: 110,806

Post » 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
22
S
6
G
1
Posts: 1,418
Reputation: 4,830


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests