Physics objects with collision polygons drift off course

0 favourites
  • 2 posts
From the Asset Store
Awesome drifts on auto generate way,tap to steer right.
  • Problem Description

    When applying force to a physics object that also uses a collision polygon, the object will not move in the exact direction that it should. How noticeable this drifting effect is depends on the angle you are moving at.

    This is not an issue if the object uses a bounding box or circle for collision detection.

    Attach a Capx

    https://drive.google.com/open?id=0B9tqO ... XBzbGRKOTA

    Description of Capx

    Puts you in control of a ship which will rotate toward the cursor. Hold "W" to apply force in the direction the ship is facing. There is a background grid which will allow you to easily recognize how the ship is moving in relation to its surroundings.

    Steps to Reproduce Bug

    • Step 1 Move in any direction. It is most noticeable when trying to follow a grid line up or down.

    Observed Result

    The ship drifts off course, or follows parallel to the course it should be taking.

    Expected Result

    The ship should move in a straight line toward the cursor, without drifting in either direction. To see how the ship should be moving, change the collision mask to circle or bounding box.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    r245

    (This has been an issue in previous versions as well.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • We need a .capx project, not an exported project, as described in the bug report requirements. Closing.

    Please note if you use a non-symmetrical collision polygon, the center of gravity will be off-center and the result you describe is the correct outcome.

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