Richard Davey
|
4bdb0de312
|
The Arcade Physics Body.speed property is now set whenever you set the velocity via setVelocity or setVelocityX or setVelocityY which stops the body velocity being reset to zero if useDamping is enabled. Fix #3888
|
2018-08-08 17:31:22 +01:00 |
|
Michael Hadley
|
7675615b70
|
Update matter copy with bug fix from liabru/matter-js@4e04043fe0
|
2018-08-05 21:29:49 -05:00 |
|
Richard Davey
|
d50b72dd14
|
Fixed Group creation arguments
|
2018-08-01 18:01:36 +01:00 |
|
Richard Davey
|
3d23013b86
|
Body setSize changes to fix #3863 PR
|
2018-07-31 09:39:22 +01:00 |
|
Richard Davey
|
16234491f2
|
Merge pull request #3863 from tarsupin/patch-2
Empty params reset to current texture size
|
2018-07-31 09:31:05 +01:00 |
|
tarsupin
|
79d64abaa3
|
Add spaces after ifs
|
2018-07-24 20:06:18 -05:00 |
|
tarsupin
|
2e72c9966b
|
Reset body to match current frame
When using setSize, empty height and width will automatically assign to match the current frame of the game object.
|
2018-07-24 20:05:51 -05:00 |
|
tarsupin
|
7af6e5477f
|
Empty params reset to current texture size
If the width and height aren't provided, it resets the body's size to match the current frame of the game object's texture.
|
2018-07-24 19:53:41 -05:00 |
|
samme
|
7ebc7dd01f
|
Fix ArcadePhysics#closest, furthest
|
2018-07-18 16:23:38 -07:00 |
|
Richard Davey
|
7aa46657c2
|
Tidying up jsdocs and changing float to number
|
2018-06-26 23:19:14 +01:00 |
|
samme
|
b3ac91df5a
|
Fix blocked.none after separation
|
2018-06-19 14:48:07 -07:00 |
|
Richard Davey
|
7eac419d3c
|
Fixed namespace
|
2018-06-12 16:52:57 +01:00 |
|
Richard Davey
|
c7c104bc2b
|
Tidied up the formatting and jsdocs for Physics Editor parser
|
2018-06-12 13:07:19 +01:00 |
|
Richard Davey
|
9a53daa068
|
Merge pull request #3729 from CodeAndWeb/matterjs-pe-loader
Matterjs pe loader
|
2018-06-12 11:54:18 +01:00 |
|
Joachim Grill
|
ff7f614a8e
|
renamed to PhysicsEditorParser, added jsdocs
|
2018-06-11 16:37:32 +02:00 |
|
Richard Davey
|
1777c47a23
|
Added missing check
|
2018-06-08 00:22:58 +01:00 |
|
Andreas Loew
|
bcef469e1c
|
Trivial change to trigger travis ci build.
The last build failed because of lint issues outside of our code.
|
2018-06-05 07:45:56 +02:00 |
|
Andreas Loew
|
fea754f1f9
|
Converted code to ES5
|
2018-06-04 22:44:36 +02:00 |
|
Joachim Grill
|
6c58bd9029
|
fixed lint issues
|
2018-06-04 11:12:02 +02:00 |
|
Richard Davey
|
15af7c6d0c
|
Added jsdocs
|
2018-06-04 01:38:45 +01:00 |
|
Richard Davey
|
e7fec396e1
|
If a Body collides with a Static Body it will now set the blocked properties accordingly
|
2018-06-03 21:17:33 +01:00 |
|
Richard Davey
|
579c6ba607
|
Body.useDamping is a new boolean property that allows you to use a damping effect for drag, rather than the default linear deceleration.
|
2018-06-03 17:08:08 +01:00 |
|
Richard Davey
|
9aa80b2b49
|
World.computeVelocity now uses the Body.useDamping property to perform either linear deceleration or damping on the Body.
updateMotion has been stream lined.
computeVelocity has been rewritten, takes new arguments, performs better internally.
|
2018-06-03 17:07:41 +01:00 |
|
Richard Davey
|
bbf6211107
|
Refactored enable and disable flow and added lots of jsdocs.
|
2018-06-02 12:45:25 +01:00 |
|
Richard Davey
|
9875318f20
|
Added missing dx/dy properties
|
2018-06-01 19:52:52 +01:00 |
|
Richard Davey
|
40a3896962
|
Added more jsdocs, setFPS and optimized group vs. sprite and RTree use
|
2018-06-01 19:19:07 +01:00 |
|
Richard Davey
|
586d1827e0
|
Removed dirty property, optimized update loop, refactored postUpdate for fixed time step
|
2018-06-01 19:18:40 +01:00 |
|
Richard Davey
|
329c9266b4
|
GetOverlapX/Y now use the calculated delta values, not the deltaX/Y methods
|
2018-06-01 15:41:40 +01:00 |
|
Joachim Grill
|
bc4186061c
|
added getter for center of mass
|
2018-06-01 14:42:59 +02:00 |
|
Joachim Grill
|
4719694f33
|
matter-js physics: added loader for shapes created and exported with PhysicsEditor
|
2018-06-01 14:42:28 +02:00 |
|
Richard Davey
|
4ad7993b78
|
Added fixed timestep logic to Arcade Physics World
|
2018-06-01 03:25:33 +01:00 |
|
Richard Davey
|
652b7b04ba
|
Huge new ArcadeColliderType def. Fix #3714.
|
2018-05-31 15:52:45 +01:00 |
|
Richard Davey
|
6ab124c591
|
Merge pull request #3687 from thomastanck/thomastanck-typedefupdates
Update type definitions
|
2018-05-24 13:49:30 +01:00 |
|
Richard Davey
|
68303622f2
|
Setting an existing Game Object as a static Arcade Physics body would sometimes incorrectly pick-up the dimensions of the object, such as with TileSprites. Fix #3690
|
2018-05-23 15:17:26 +01:00 |
|
Richard Davey
|
de8462efed
|
Added default values and tidied up docs a little
|
2018-05-22 16:19:18 +01:00 |
|
Richard Davey
|
1485f34cbe
|
Merge pull request #3682 from samme/feature/arcade-body-setters
Add `allowDrag`, `allowGravity`, `allowRotation` to Arcade.PhysicsGroup config
|
2018-05-22 16:12:39 +01:00 |
|
Thomas Tan
|
0c61eb0062
|
Return type this for Arcade Physics components too
|
2018-05-22 16:09:28 +08:00 |
|
Thomas Tan
|
ff38588285
|
Specify type of ArcadeSprite.body
Do this by overwriting this.body in ArcadeSprite constructor.
|
2018-05-22 10:16:21 +08:00 |
|
Thomas Tan
|
8124ba9b86
|
Allow object param type for Arcade group Factory
|
2018-05-22 10:15:42 +08:00 |
|
Thomas Tan
|
806b5981b0
|
Add Group to param type in Arcade collide/overlap
|
2018-05-22 10:11:15 +08:00 |
|
Thomas Tan
|
3589b95bbd
|
Fix setCollideWorldBounds param type for Arcade
|
2018-05-22 10:05:37 +08:00 |
|
samme
|
24efda7aca
|
Add allowDrag , allowGravity , allowRotation to PhysicsGroup config
|
2018-05-16 10:36:23 -07:00 |
|
samme
|
06677c2cdc
|
Allow empty object2 in collideObjects
|
2018-05-15 13:11:31 -07:00 |
|
Richard Davey
|
350cb037b7
|
All systems now register themselves with the new PluginCache
|
2018-05-15 12:51:50 +01:00 |
|
Richard Davey
|
be330e609e
|
Moved PluginManager to new location
|
2018-05-10 17:14:33 +01:00 |
|
samme
|
a70fb6aee9
|
Add docs for Arcade Physics
|
2018-05-09 21:28:52 -07:00 |
|
Bill Reed
|
a996bbf8df
|
update collider and overlap param types
|
2018-04-30 08:44:02 -04:00 |
|
Bill Reed
|
3fc0712451
|
update collider param types
|
2018-04-30 08:43:21 -04:00 |
|
Bill Reed
|
e3af569642
|
update overlap and collide params
|
2018-04-30 08:42:49 -04:00 |
|
Bill Reed
|
7251824b1d
|
arcade colliders take gameobjects, not arcade bodies
|
2018-04-30 07:46:46 -04:00 |
|