You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An immovable object with circular collision will move when an object with rectangular collision collides with it.
This is inconsistent with all earlier versions, and with rectangular objects.
In order to prevent an object from moving in 3.88.1, the body must be set to immovable, and have pushable explicitly set to false AND the object colliding with it must be pushable.
Example Test Code
in comments. the behavior is clear in the separateCircle function of world.js. When object is immovable but pushable, it moves it.
Additional Information
The behavior is USEFUL, but an unnecessary breaking change, and inconsistent with other shapes. setImmovable could set pushable to false, and require it be explicitly enabled, which should prevent it from being a breaking change.
The text was updated successfully, but these errors were encountered:
Version
Description
An immovable object with circular collision will move when an object with rectangular collision collides with it.
This is inconsistent with all earlier versions, and with rectangular objects.
In order to prevent an object from moving in 3.88.1, the body must be set to immovable, and have pushable explicitly set to false AND the object colliding with it must be pushable.
Example Test Code
in comments. the behavior is clear in the separateCircle function of world.js. When object is immovable but pushable, it moves it.
Additional Information
The behavior is USEFUL, but an unnecessary breaking change, and inconsistent with other shapes. setImmovable could set pushable to false, and require it be explicitly enabled, which should prevent it from being a breaking change.
The text was updated successfully, but these errors were encountered: