Physics objects with collision polygons drift off course

Report Construct 2 bugs here.

Post » Thu Jul 13, 2017 3:10 pm

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.)
B
10
S
4
G
4
Posts: 28
Reputation: 2,806

Return to Bugs

Who is online

Users browsing this forum: luckyrawatlucky and 0 guests