Minor Mathematical Convention Angle Bug

0 favourites
  • 6 posts
From the Asset Store
3D Car Pack 1
$2.99 USD
3D models + Rendered Low-Poly Cars in isometric, top-down, and side angles.
  • 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.

  • 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.

  • 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!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

    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

  • Our standards are much lower than yours, literally.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)