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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,21 @@
4
4
5
5
A small point release to fix a couple of important issues that slipped into 3.16.
6
6
7
+
### New
8
+
9
+
* There is a new Matter Physics Event `DRAG_START` which is emitted by a Pointer Constraint when it starts dragging a body. Listen for this event fro the Matter World instance.
10
+
* There is a new Matter Physics Event `DRAG` which is emitted by a Pointer Constraint as it drags a body. Listen for this event fro the Matter World instance.
11
+
* There is a new Matter Physics Event `DRAG_END` which is emitted by a Pointer Constraint when it stops dragging a body. Listen for this event fro the Matter World instance.
12
+
7
13
### Updates
8
14
9
15
*`TileSprite.setTileScale` has been updated so that the `y` argument is optional and set to match the `x` argument, like `setScale` elsewhere in the API.
10
16
*`InputManager.time` is a new property that holds the most recent time it was updated from the Game step, which plugins can access.
11
17
*`InputManager.preStep` is a new method that populates some internal properties every step.
12
18
*`KeyboardPlugin.time` has moved from being a property to being a getter, which returns the time from the InputManager.
13
19
* The `scale` property has been added to the `Scene` class (thanks @strangeweekend)
20
+
*`Matter.World.remove` now uses the `Composite.remove` method internally. Previously, it used `Composite.removeBody` which only allowed it to remove bodies from the simulation. Now, it can remove any type of Matter object.
21
+
*`Matter.PointerConstraint.camera` can no longer be set in the config object. Instead it is set every time the Pointer is pressed down on a Body, this resolves issues where you have a multi-camera Scene and want to drag a body in the non-main camera.
0 commit comments