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
QuadTree.retrieve can now accept either a Sprite with a physics body or a Phaser.Rectangle as its parameter.
ArcadePhysics.getObjectsUnderPointer will return all children from a Group that overlap with the given Pointer.
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,8 @@ Version 2.0.5 - "Tanchico" - in development
62
62
* TypeScript definitions fixes and updates (thanks @luispedrofonseca@clark-stevenson)
63
63
* Input.getPointerFromIdentifier docs update to reflect where the identifier comes from. Pointer properties now set to give it fixed defaults (thanks @JirkaDellOro, #793)
64
64
* Pointer.pointerId added which is set by the DOM event (if present in the browser). Note that browsers can and do recycle pointer IDs.
65
+
* Pointer.type and Pointer.exists properties added.
66
+
* QuadTree.retrieve can now accept either a Sprite with a physics body or a Phaser.Rectangle as its parameter.
65
67
66
68
67
69
### New Features
@@ -70,11 +72,13 @@ Version 2.0.5 - "Tanchico" - in development
70
72
* Group.hasProperty will check a child for the given property and return a boolean.
71
73
* Phaser.Tween.from allows you to set tween properties that will end up where the current object is (thanks @codevinsky, #792)
72
74
* Input.getPointerFromId will return a pointer with a matching pointerId value, if any. pointerId is a value set by the browser in the DOM event.
75
+
* ArcadePhysics.getObjectsUnderPointer will return all children from a Group that overlap with the given Pointer.
* Line segment collision fails under certain cicumstances (thanks @woutercommandeur, fix #760)
78
82
* The P2 DistanceConstraint method signature has changed. Updated Phaser so maxForce is now passed as object (fix #788)
79
83
* Moved the this._reversed flag outside of the property loop in Tween (as per tween.js issue 115)
80
84
* Emitter.makeParticles updated to use Array.isArray() check on the key/frame values, so non-string objects can be passed in (thanks @AnderbergE, fix #786)
* @param {Phaser.Pointer} pointer - The Pointer to check.
1328
+
* @param {Phaser.Group} group - The Group to check.
1329
+
* @param {function} [callback] - A callback function that is called if the object overlaps with the Pointer. The callback will be sent two parameters: the Pointer and the Object that overlapped with it.
1330
+
* @param {object} [callbackContext] - The context in which to run the callback.
1331
+
* @return {array} An array of the Sprites from the Group that overlapped the Pointer coordinates.
0 commit comments