Richard Davey
aa9cac4ba8
Added refreshBody method and jsdocs
2018-02-15 01:52:01 +00:00
Richard Davey
7df00ccb6f
Removed un-used properties from the Static Body
...
Set un-used Vectors to use the Vec2 ZERO constant to save object creation.
Added setGameObject and updateFromGameObject methods.
2018-02-15 01:51:36 +00:00
Richard Davey
4cc7fed1dd
Added World.pendingDestroy Set and process it during postUpdate.
2018-02-15 01:50:22 +00:00
Richard Davey
b36dd17430
Removed pendingDestroy and opted for easier Set iteration.
...
Updated Body.reset so it resets the Sprite as well, otherwise the Body remains stuck on the next update loop.
2018-02-15 01:49:55 +00:00
Richard Davey
e68329f763
Fixed version numbers
2018-02-14 19:55:00 +00:00
Richard Davey
24e8f7a119
Body.destroy is now flag based, cleared by the World.
...
Added pendingDestroy flag to handle body destruction within events or collider iterations.
2018-02-14 19:36:34 +00:00
Richard Davey
81d0a48c58
disableBody renamed disableGameObjectBody
...
disableBody now disables just a body object.
destroying a body sets its `pendingDestroy` flag, which is now cleared in the postUpdate method.
Group vs. Group collision has been implemented.
World.destroy properly clears down its Sets and RTrees.
2018-02-14 19:35:57 +00:00
Richard Davey
b7beea1d37
Impact bodies now remove themselves from the world when destroyed.
2018-02-14 19:34:21 +00:00
Richard Davey
b81b268b29
Matter JS bodies now have a destroy method that removes them from the world.
2018-02-14 19:33:56 +00:00
Richard Davey
c6f4a6ed43
Arcade Physics Colliders have a name property and setName method.
2018-02-14 19:33:33 +00:00
Richard Davey
8f4a1012fd
Updated jsdocs.
2018-02-13 01:39:22 +00:00
Richard Davey
2813ac8162
Moved PluginManager and merged configs into single root file for easier changing.
2018-02-12 23:03:48 +00:00
Richard Davey
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
eaca4eb462
Added jsdocs
2018-02-12 13:48:53 +00:00
Richard Davey
e448ec59f0
Added removeConstraint method.
2018-02-12 13:48:52 +00:00
Richard Davey
d421e9264e
Fixed #3145
2018-02-12 13:48:49 +00:00
Richard Davey
8de078d333
Added jsdocs
2018-02-12 13:48:48 +00:00
Richard Davey
92db8cfa2c
Added jsdocs and fix #3179
2018-02-12 13:48:48 +00:00
Richard Davey
d3cb0761d2
Updated jsdocs.
2018-02-09 16:52:19 +00:00
Richard Davey
2434bb187a
Added jsdocs.
2018-02-09 16:52:18 +00:00
Richard Davey
c7a84a1f7a
Merge pull request #3209 from vulcanoidlogic/master
...
matterjs PointerConstraint.js world.events.on undefined
2018-02-09 16:51:52 +00:00
Richard Davey
5db058021f
Added jsdocs.
2018-02-09 15:23:33 +00:00
Richard Davey
73833e6628
Fixed require path.
2018-02-09 15:23:12 +00:00
Greg
79b61defe6
#3200 Errors in Input Mouse Events examples
2018-02-09 00:21:08 -05:00
Richard Davey
c1b5ff885e
Added jsdocs
2018-02-09 04:08:01 +00:00
Richard Davey
e0899bfa00
Added jsdocs
2018-02-09 03:44:23 +00:00
Richard Davey
91887815f6
Merged Arcade Physics methods and added jsdocs
2018-02-09 01:40:41 +00:00
Richard Davey
10193c181a
Fixed require paths.
2018-02-07 17:10:01 +00:00
Richard Davey
40689d1e35
Updated jsdocs.
2018-02-07 15:27:21 +00:00
Richard Davey
2a86400a28
Added in jsdocs
2018-01-31 13:54:44 +00:00
Richard Davey
f1a25921c7
Fixed missing Pipeline component.
2018-01-30 19:16:00 +00:00
Michael Hadley
16767927cb
Bug fix: setExisting -> setExistingBody
2018-01-28 08:06:05 -06:00
Michael Hadley
7acd9b0381
Tiled object parser: store points as xy objects instead of arrays
...
V2 used arrays, but other places in the codebase (and users) will expect an object with XY props over an array.
2018-01-27 08:34:11 -06:00
Michael Hadley
cbc493df98
MatterTileBody bug fix: tile -> this.tile
2018-01-26 22:31:53 -06:00
Michael Hadley
801d2e92e1
Revert "Add matter component for inertia - useful for platformers"
...
This reverts commit 2b20c8bbfb
.
2018-01-26 21:51:20 -06:00
Michael Hadley
ec444f876e
Extend SetBody component with setExistingBody method
...
This makes it easy to add compound bodies to a MatterSprite/MatterImage
2018-01-26 21:50:22 -06:00
Michael Hadley
0d84860a8a
Update Matter.World to render compound bodies
2018-01-26 21:50:21 -06:00
Michael Hadley
2b20c8bbfb
Add matter component for inertia - useful for platformers
2018-01-25 16:05:49 -06:00
Michael Hadley
08df6b4cb0
Bug fix: wrong prop name
2018-01-25 15:34:25 -06:00
Michael Hadley
7730af643d
Add better support for concave polygons to MatterTileBody
2018-01-25 15:17:33 -06:00
Michael Hadley
578fe59110
Add scale support to MatterTileBody
2018-01-25 15:17:10 -06:00
Michael Hadley
64d172546c
JSDoc Matter.World#convertTilemapLayer & Matter.World#convertTiles
2018-01-25 14:04:58 -06:00
Michael Hadley
27930fb4bb
JSDoc MatterTileBody
2018-01-25 13:58:03 -06:00
Michael Hadley
92fb2a9c21
Update MatterTileBody to use latest Tile API
2018-01-25 13:49:28 -06:00
Michael Hadley
a6556e9364
Expose Phaser.Physics.Matter.TileBody
2018-01-25 13:48:47 -06:00
Michael Hadley
6776b94c5b
Allow Impact.Sprite#setVelocity to accept 1 parameter
2018-01-25 08:45:40 -06:00
Michael Hadley
2c1f10b0b4
setCollisionMapFromTilemapLayer - load slope mapping via object or Tiled properties
2018-01-23 22:00:01 -06:00
Michael Hadley
ccdad43920
Matter world and factory methods for creating a tile body
2018-01-21 12:53:48 -06:00
Michael Hadley
348da8c81e
MatterTileBody: wrapper around a Tile that provides access to a matter body
2018-01-21 12:53:27 -06:00
Michael Hadley
a6365c5339
Removing es6 'let' from AP vs tilemap
2018-01-19 06:56:52 -06:00
Richard Davey
d46662cd46
Swapped to using Number.MAX_VALUE
so repeat -1 now works properly in IE11 and below.
2018-01-18 14:59:32 +00:00
Richard Davey
2deb9edc9e
Plugins now check to see if the Scene is already booted and adapt accordingly.
2018-01-18 14:00:31 +00:00
Richard Davey
5a333bc2fd
Updated to new Plugin format, removed injection and mapping
2018-01-18 05:18:09 +00:00
Michael Hadley
fd8cad1fb6
Add Impact method for loading collision map from Weltmeister file
2018-01-17 18:50:00 -06:00
Michael Hadley
5bc09a2c5c
Update AP physics to handle tiles where tileSize !== baseTileSize
2018-01-17 11:27:29 -06:00
Richard Davey
108b6bd2a3
Events call the world directly, avoids an unnecessary function jump.
2018-01-17 15:28:53 +00:00
Richard Davey
f41d016c9f
Moved Matter over to use the plugin system.
2018-01-17 15:22:16 +00:00
Richard Davey
b17744df61
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-01-17 03:42:03 +00:00
Richard Davey
ddba95873d
Moved Arcade and Impact Physics over to the new plugin system
2018-01-17 03:41:58 +00:00
Michael Hadley
814e5af815
Remove recalculation of tile bounds from arcade physics
2018-01-16 19:03:13 -06:00
Richard Davey
ca7550aa6f
Moved plugins
2018-01-16 18:38:29 +00:00
Michael Hadley
bf413ea604
Implemented tile & layer callbacks in arcade physics
2018-01-12 15:00:37 -06:00
Michael Hadley
ef58640026
Arcade: tilemap collisions/overlaps now emit appropriate events
2018-01-12 14:23:36 -06:00
Michael Hadley
8f0b428209
Bug fix in events: overlap
used where collide
should be
2018-01-12 14:20:48 -06:00
Richard Davey
f00f467eec
Matter now using new EventEmitter.
2018-01-12 18:59:11 +00:00
Richard Davey
f9a1e27334
Removed un-used event files and references.
2018-01-12 17:20:16 +00:00
Richard Davey
c625b8735b
Updated to using Event Emitter for all key managers and game objects. Events are now dispatched directly using arguments instead of Event objects, all managers updated to emit directly.
2018-01-12 17:09:21 +00:00
Michael Hadley
15825eacb3
Add note about circle bodies not currently being supported in Arcade tile intersection
2018-01-12 10:53:36 -06:00
Michael Hadley
bab399a02e
Made CollideHandler consistent by returning value from logic branches
...
Each branch should return true/false based on whether a collision happened
2018-01-11 14:13:42 -06:00
Michael Hadley
00cebf8eae
CollideGroupVsTilemapLayer implementation
2018-01-11 14:03:34 -06:00
Michael Hadley
5241798ab3
Pass TILE_BIAS from arcade world into tile colliding functions
2018-01-11 08:32:07 -06:00
Michael Hadley
98ae8009e0
Arcade rect vs tilemap layer collision handling
2018-01-10 20:47:25 -06:00
Michael Hadley
32788d6eb6
Stub arcade collide vs tilemap methods
2018-01-10 20:43:11 -06:00
Michael Hadley
e3699aaea0
Remove unnecessary Arcade Body#tilePadding
2018-01-10 19:34:22 -06:00
Richard Davey
d8f1ba03e9
Moved repository location
2018-01-09 21:43:56 +00:00
Richard Davey
0d90f75b5f
Splitting the dev branch up into versions.
2016-11-22 01:36:56 +00:00
Richard Davey
4d4344bf03
Arcade Physics updated to use new Transform system.
2016-11-11 02:20:31 +00:00
photonstorm
26711241ac
Disabled access to World and Camera for now.
2016-10-14 02:20:35 +01:00
Richard Davey
380e717e52
Finished off missing factories. Moved over the docs. Changed rogue @returns to @return everywhere.
2016-10-08 16:17:46 +01:00
Richard Davey
31592b98f1
The P2 Physics library has been updated to 0.7.1. This is still quite out of date, but as soon as they release their latest build (hopefully soon) we'll update to that.
2016-09-21 23:16:14 +01:00
Richard Davey
8a78029e2b
Merge pull request #2728 from samme/issue-2720
...
Add a hint for resizing Body of scaled Sprites
2016-09-07 23:27:34 +01:00
James
42ca43d98c
updated docs on Arcade body's setSize
2016-08-30 17:08:25 -05:00
samme
792ae127bf
Add a hint for resizing Body of scaled Sprites
2016-08-29 12:50:05 -07:00
photonstorm
ad0e4aca2e
Large batch of jshint fixes.
2016-08-25 13:03:41 +01:00
samme
b05becf962
Correct docs:
...
* `angularAcceleration`, `angularDrag`, and `angularVelocity` are measured in degrees.
* `angle` describes `velocity` and is unrelated to angular motion
2016-08-22 12:05:12 -07:00
photonstorm
11b0436a26
Fixed Arcade Physics Circle body collision, after the #2654 change broke it unintentionally.
2016-08-22 16:23:22 +01:00
photonstorm
7b9c4114b2
Preparing for 2.6.2 release.
2016-08-22 12:31:02 +01:00
Richard Davey
19342fa3af
ArcadePhysics Body.rotation now reads its initial value from sprite.angle instead of sprite.rotation. The property was immediately replaced with the correct value in Body.preUpdate regardless, but it keeps it consistent (thanks @samme #2708 )
2016-08-21 10:27:58 +01:00
Richard Davey
9654a4b3c5
Consolidating Layers into View class.
2016-07-25 01:39:46 +01:00
Richard Davey
6947057427
The property checkCollision.none
in the ArcadePhysics.Body class was available, but never used internally. It is now used and checked by the separate
method. By setting checkCollision.none = true
you can disable all collision and overlap checks on a Body, but still retain its motion updates (thanks @samme #2661 )
2016-07-23 10:01:38 +01:00
Richard Davey
46c20ab00a
The property checkCollision.none
has been removed from the ArcadePhysics.Body class. It was never used internally, so lead to confusion about its use. To disable a body, use body.enable = false
(thanks @samme #2661 )
2016-07-23 09:43:01 +01:00
photonstorm
3ba00bbf2d
Loads of work on tilemap collision, and offset support. You can now collide with a tilemap no matter where it is on the screen, or which layer it's from.
2016-07-22 17:02:10 +01:00
photonstorm
0e25c5acac
Revert getTiles call.
2016-07-22 14:08:54 +01:00
Richard Davey
d8560eb3bc
Fixed Tilemap collision.
2016-07-22 04:32:56 +01:00
Leopoldo Brines
18472f5998
Fix 'TypeError: target.center is undefined'
2016-07-20 18:34:02 -04:00
Boniatillo.com
3d1b10c310
jsdoc fix: replace #onTop for #onCeiling
...
Modified the jsdoc of Phaser.Arcade.Body.onCeiling, by replacing the #onTop reference for #onCeiling.
2016-07-19 08:32:34 -04:00
photonstorm
ac2516f5aa
2.6.1 Release.
2016-07-11 10:07:56 +01:00
Richard Davey
cfb2b813ef
Fixed Uncaught TypeError: Cannot set property 'x' of undefined
in Body.js (thanks @ErwanErwan #2607 )
2016-07-08 18:54:00 +01:00
photonstorm
61ce14f332
P2.World.clear will now clear out the World.walls property, resetting all of the wall bounds to null
. This allows the walls to be re-created accurately when the P2 World is reset, which happens on a State change or restart (thanks @ewpolly1 @codermua #2574 )
2016-07-08 13:02:58 +01:00
photonstorm
dfd9203e0a
onWorldBounds now sends the bounds it collided with.
2016-07-08 11:28:45 +01:00