Sean Bohan
3f2e63fc17
Fix arcade body does not align with scaled parent object.
...
When a game object scaled, arcade body still calculate its position based on its original size instead of scaled one.
2018-03-01 09:02:04 +08:00
Richard Davey
1cae348300
Merge pull request #3278 from nkholski/arcadeGroups
...
Groups arcade collision
2018-02-28 20:56:11 +00:00
Richard Davey
218b4e4a52
Merge pull request #3285 from samme/docs/onWorldBounds
...
Describe Arcade.Body#onWorldBounds
2018-02-28 20:48:31 +00:00
Richard Davey
921d7e317a
Arcade Physics Bodies didn't apply the results of allowRotation
to the parent Game Object.
2018-02-27 01:08:55 +00:00
samme
36d91e9955
Describe Arcade.Body#onWorldBounds
2018-02-26 11:27:57 -08:00
Niklas Berg
b87d71ab73
single out groups without physics
2018-02-24 08:44:38 +01:00
Niklas Berg
b9e4d15efb
Groups arcade collisions
2018-02-23 23:49:12 +01:00
samme
64e5b4394a
Fix 'static is a reserved word in strict mode'
2018-02-18 10:38:08 -08:00
Richard Davey
3c65121cb3
eslint fixes
2018-02-16 19:17:49 +00:00
Richard Davey
d23688c3e4
Added eslint fixes and overrides
2018-02-16 18:44:07 +00:00
Richard Davey
3f155bf8f3
World didn't import GetOverlapX or GetOverlapY, causing separateCircle
to break.
2018-02-16 18:43:06 +00:00
Richard Davey
86f00eeb52
eslint fixes
2018-02-16 18:17:51 +00:00
Richard Davey
4e6df03512
Updated semver
2018-02-15 14:31:15 +00:00
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