Richard Davey
|
a6e650f26f
|
Merge pull request #4006 from samme/docs/arcade-image-body
Correct types for ArcadeImage#body, ArcadeSprite#body
|
2018-09-04 12:23:26 +01:00 |
|
Richard Davey
|
7c55e65543
|
Arcade Physics Body deltaX and deltaY methods will now return the previous steps delta values, rather than zero. Fix #3987
|
2018-09-04 12:16:24 +01:00 |
|
Richard Davey
|
3d989e136f
|
Arcade Physics World collideSpriteVsTilemapLayer now syncs the collision results back to the body, allowing you to call collide from within an update loop once again. Fix #3999
|
2018-09-04 12:12:51 +01:00 |
|
samme
|
c0e141513c
|
Correct types for ArcadeImage#body, ArcadeSprite#body
|
2018-09-02 14:45:39 -07:00 |
|
Richard Davey
|
00a31d2d88
|
Updated docs. Close #3997
|
2018-09-01 10:14:22 +01:00 |
|
Richard Davey
|
14d3f6b35c
|
Calling Arcade Physics collide during an update method wouldn't inject the results back into the Body parent, causing the bodies to carry on moving. Using Colliders worked, but manually checking did not. Now, both methods work. Fix #3777
|
2018-08-29 16:35:13 +01:00 |
|
Richard Davey
|
3469ff2cfd
|
Arcade Physics World has gained two new private properties _tempMatrix and _tempMatrix2 . These are used by all bodies in the simulation that need a temporal matrix for calculations, rather than having their own instances.
|
2018-08-29 16:07:07 +01:00 |
|
Richard Davey
|
2c525845be
|
The Arcade Physics Body _tempMatrix property has been removed. It was only used if the Body's Game Object had a parent. The matrix has been moved to the World instance instead, shared by all bodies.
|
2018-08-29 16:06:13 +01:00 |
|
samme
|
fb23367c63
|
Fix Arcade.World#disable
It was passing the wrong argument to disableBody, so failing.
|
2018-08-22 13:23:58 -07:00 |
|
Richard Davey
|
da64e41b2f
|
Fixed Matter require call freaking out webpack
|
2018-08-22 15:54:00 +01:00 |
|
Richard Davey
|
65fb366ecd
|
Matter updated to 0.14.2. Fix #3929
|
2018-08-22 14:01:35 +01:00 |
|
Richard Davey
|
a98b3c3b15
|
In Matter.js if you scaled a Body it would only scale correctly once, due to the way Matter handles scaling internally. We now automatically reset the Matter scale before applying the new value, which allows you to keep the Phaser and Matter object scales in sync. Fix #3785 #3951
|
2018-08-21 15:55:39 +01:00 |
|
Aurélien DUSSAUGE
|
b14d920581
|
Replace DistanceBetween with DistanceSquared in closest() and furthest() functions (ArcadePhysics.js)
|
2018-08-13 21:59:58 +02:00 |
|
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 |
|