Enable/Disable Collisions Bug

Bugs will be moved here once resolved.

Post » Thu Mar 05, 2015 5:05 am

Problem Description
On both physics engines, when let's say... object "A" is already in the layout and this object is sleeping, if you use the action: "Disable Collisions with other object", the action will not work on the Object "A" causing to have the Collisions Enabled with the object "B" until the end of the layout, or until the object collides again with the Object "B" with a strong physics impulse.

Attach a Capx

Description of Capx
The Instructions are Very Clear, key 1 to Disable Collisions, Key 2 to Enable Collisions, Right Click to Enable a Object, Left click to drag. The Problem is visible when you disable the collisions, the initial green squares will stay in the same place and the newly created squares will have this option working.

Steps to Reproduce Bug
  • Put the Physics Object to sleep mode. (Achieved when the object makes contact with the Purple Floor)
  • Press Key 1 to Disable Collisions with the Purple Floor.
  • Tadaaa! Bug D:

Observed Result
The Squares will stay still forever until they are moved from a distance (with left click drag) , or the layout is restarted, even when a newly created square collides with the sleeping square, the sleeping condition will be disabled for a while, but they will stay still.

Expected Result
I expect that when you enable or disable collisions with object "A" to "B" and the object "A" is on sleeping mode, the object "A" will pass trough the object "B", so the disable collision action works.

I know that the physics engine works on this manner, but it will be helpfull if a new physics action to wake up a physic object is added.

Affected Browsers
  • Chrome: YES
  • FireFox: YES
  • Internet Explorer: YES

Operating System and Service Pack
Windows 7 SP1

Construct 2 Version ID
Posts: 27
Reputation: 959

Post » Mon Mar 09, 2015 1:19 pm

Sorry, this is just how the physics engine works: you can't disable collisions for objects that are already colliding. It only tests if the collision is disabled at the initial point of contact. Closing as won't fix.
Scirra Founder
Posts: 24,207
Reputation: 191,712

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest