samme
be558d2dca
Scale damping
2020-10-22 13:59:49 -07:00
Richard Davey
675e43350d
Physics.Arcade.Body.setDamping
is a new method that allows you to set the useDamping
property of a Body in a chainable way. Fix #5352
2020-10-16 17:57:26 +01:00
Richard Davey
8a01ae1cb7
Call the component directly to avoid lots of function diving
2020-10-15 11:47:24 +01:00
Richard Davey
8d2e7b08c5
Update World.js
2020-10-15 11:07:51 +01:00
Richard Davey
417e57c199
Update Collider.js
2020-10-15 11:07:27 +01:00
Richard Davey
00b8bb4e0f
Merge pull request #5344 from samme/fix/collisions-update-center
...
Correct Arcade Body center after separations
2020-10-06 09:45:41 +01:00
samme
130160f825
Update center after world bounds collision
2020-10-03 13:46:11 -07:00
Richard Davey
9caadeb364
Lint fix. #4992
2020-10-02 09:49:39 +01:00
Richard Davey
c3c35322c4
Merge pull request #4992 from svipal/master
...
Preliminary PR for isometric support
2020-10-02 09:42:47 +01:00
samme
2223aebffb
Don't update center before separation
...
Should be unnecessary now
2020-10-01 10:44:40 -07:00
samme
9a348409e3
Update center after separation
2020-10-01 10:42:30 -07:00
samme
e639bb73d8
Correct Arcade Body types
...
For TypeScript
Fixes #5328
2020-09-28 11:42:21 -07:00
Richard Davey
1d66284a22
Removed debug logs and finished JSDocs
2020-09-28 15:25:43 +01:00
Richard Davey
34be82a20c
Added processX and processY methods
2020-09-28 15:25:28 +01:00
Richard Davey
4d484e2c0c
Updated to handle face blocking and all possible checks
2020-09-28 13:07:32 +01:00
Richard Davey
731e661d56
No longer needed
2020-09-28 13:07:11 +01:00
Richard Davey
4785953368
Merge branch 'master' of https://github.com/photonstorm/phaser
2020-09-28 08:07:23 +01:00
Richard Davey
09c2a2d622
Testing new separation
2020-09-28 08:07:19 +01:00
Richard Davey
30b514fc58
Merge pull request #5326 from samme/fix/body-setOffset
...
Remove Arcade.Body#updateCenter() in Arcade.Body#setOffset()
2020-09-26 10:19:53 +01:00
samme
639a93583f
Remove updateCenter() in setOffset()
2020-09-25 14:42:56 -07:00
samme
d0f6070e14
Docs: Arcade.Body#setOffset
2020-09-25 14:37:26 -07:00
samme
13c27064a8
Docs: Arcade.Body#reset
...
Only game object receives the passed coordinates
2020-09-25 14:19:12 -07:00
Richard Davey
bed716e382
X Separation working properly in all cases. Now to adjust Y.
2020-09-25 21:25:01 +01:00
Richard Davey
7630b8e28d
Testing new Separation logic (Y done, X in progress)
2020-09-25 18:01:40 +01:00
Richard Davey
2bcf1f70be
Testing new separation logic (incomplete atm)
2020-09-24 18:10:11 +01:00
Richard Davey
da78d3ee42
Tidy up docs
2020-09-24 18:10:00 +01:00
Richard Davey
69b8458bb8
Added new pushable
component
2020-09-24 18:09:49 +01:00
Richard Davey
b64d63f60e
When running an Arcade Physics overlap
test against a StaticBody
, it will no longer set the blocked
states of the dynamic body. If you are doing a collision test, they will still be set, but they're skipped for overlap-only tests. Fix #4435
2020-09-24 11:04:56 +01:00
samme
426c9632c7
Set maxVelocity in PhysicsGroupConfig
2020-09-22 16:05:21 -07:00
Svipal
299f83c13d
fixed conflicts
2020-09-19 10:56:05 +02:00
svipal
79fe9abc6e
finished updating culling system
2020-09-18 17:16:52 +02:00
samme
2eb505c91d
Docs: Arcade.Body#setCollideWorldBounds
2020-09-17 14:20:13 -07:00
samme
7aa8f02d8c
Add onWorldBounds arg in setCollideWorldBounds()
2020-09-17 14:19:57 -07:00
Richard Davey
e450bf2f1f
Swap to using constants for pipeline names
2020-09-09 13:05:18 +01:00
samme
b0ce62e2d8
Docs: correct type for Body#customBoundsRectangle
2020-09-08 18:44:12 -07:00
Svipal
1994185d6f
merged master
2020-09-08 22:17:04 +02:00
Richard Davey
cdd612a273
AnimationState has moved namespace to keep things logically together
2020-09-08 09:31:59 +01:00
Richard Davey
5344d39498
Better Group docs. Fix #5011
2020-09-07 16:40:05 +01:00
Richard Davey
4af38a4836
Merge pull request #5285 from samme/feature/arcade-config-fixedstep
...
Add ArcadeWorldConfig.fixedStep
2020-09-07 16:24:49 +01:00
Richard Davey
6eae9ca598
Fixed reference
2020-09-07 10:26:10 +01:00
samme
803c300ae4
Add ArcadeWorldConfig.fixedStep
2020-09-03 07:32:44 -07:00
Richard Davey
bba8285665
Return type fix
2020-09-03 11:27:12 +01:00
Richard Davey
2980a416c9
Merge pull request #5278 from samme/fix/arcade-body-resetFlags
...
Reset flags when resetting an Arcade Body
2020-09-02 11:11:34 +01:00
Richard Davey
07865a5823
Final set of namespace changes. Fix #5062
2020-09-01 20:28:42 +01:00
samme
e194e9586f
Add delta arg to WORLD_STEP event
2020-09-01 11:33:31 -07:00
Richard Davey
d2cc809fdb
Exported functions to namespace
2020-09-01 18:56:01 +01:00
Richard Davey
4c353571ca
Removed protected status
2020-09-01 17:44:07 +01:00
Richard Davey
84a867c2ac
ArcadePhysics.disableUpdate
is a new method that will prevent the Arcade Physics World update
method from being called when the Scene updates. By disabling it, you're free to call the update method yourself, passing in your own delta and time values.
...
`ArcadePhysics.enableUpdate` is a new method that will make the Arcade Physics World update in time with the Scene update. This is the default, so only call this if you have specifically disabled it previously.
2020-09-01 17:42:38 +01:00
Richard Davey
d3778bb4bb
ArcadeWorldConfig.customUpdate
is a new boolean property you can set in the Arcade Physics config object, either in the Scene or in the Game Config. If true
the World update will never be called, allowing you to call it yourself from your own component. Close #5190
2020-09-01 17:42:19 +01:00
samme
11c0520d36
Clear wasTouching when resetting body
2020-08-29 11:56:15 -07:00
samme
57ee895437
Reset flags during reset
2020-08-27 12:35:01 -07:00
Richard Davey
0dd07333af
Updated to use MultiPipeline
2020-08-21 16:14:59 +01:00
Svipal
809d0b7495
merged master
2020-08-09 13:13:09 +02:00
Svipal
241d4193e8
let's try again
2020-08-09 12:33:52 +02:00
Svipal
b4a1473fea
test
2020-08-09 12:13:29 +02:00
Richard Davey
8db2543e27
Merge pull request #5242 from samme/fix/collide-with-friction
...
Fix collisions for objects moved by friction
2020-08-03 10:27:01 +01:00
Richard Davey
08e346952a
Merge pull request #5234 from samme/patch-4
...
Docs: Phaser.Physics.Arcade.Group#defaults
2020-08-03 10:23:15 +01:00
Richard Davey
c9330fd469
Merge pull request #5241 from samme/docs/add-existing
...
Docs: generic return for add.existing()
2020-08-03 10:19:42 +01:00
samme
f653a51cc0
Docs: generic return for add.existing()
2020-07-29 12:19:09 -07:00
Richard Davey
fb1306e8f2
The MatterAttractors
plugin, which enables attractors between bodies, has been fixed. The original plugin only worked if the body with the attractor was _first_ in the world bodies list. It can now attract any body, no matter where in the world list it is. Fix #5160
2020-07-23 18:06:17 +01:00
samme
7685067310
Docs: Phaser.Physics.Arcade.Group#defaults
...
#4171 , #5153
2020-07-23 09:48:53 -07:00
Richard Davey
af1198dcf5
Arcade.Components.Size.setBodySize
is a new method available on Arcade Physics Game Objects that allows you to set the body size. This replaces setSize
which is now deprecated. Fix #4786
2020-07-13 14:34:23 +01:00
Richard Davey
dea68135fd
Correct texture type. Fix #5199
2020-07-13 13:29:01 +01:00
Richard Davey
7fae62cbc8
Merge pull request #5213 from samme/fix/matter-setCrop
...
Fix setCrop() for Matter.Image and Matter.Sprite
2020-07-13 13:14:59 +01:00
Richard Davey
ab8ad19b1e
Merge pull request #5208 from samme/fix/arcade-physics-body-prev
...
Fix incorrect Arcade Body delta
2020-07-13 13:10:51 +01:00
Richard Davey
6bd24ded25
Merge pull request #5202 from samme/fix/arcade-physics-circular-collisions
...
separateCircle fixes
2020-07-13 13:07:39 +01:00
Richard Davey
853feea355
Merge pull request #5183 from samme/feature/body-updateFromGameObject
...
Add Arcade.Body#updateFromGameObject
2020-07-13 12:39:45 +01:00
Richard Davey
54841002eb
Merge pull request #5162 from samme/docs/arcade-physics-types
...
Add Arcade Physics types
2020-07-13 12:27:54 +01:00
Richard Davey
bafae8424d
Merge pull request #5153 from samme/fix/create-group-from-children
...
Fix problems passing `children` to created group
2020-07-13 12:15:26 +01:00
Richard Davey
7fa6d17e17
Merge pull request #5150 from samme/fix/static-body-from-scaled-sprite
...
Fix static body position from scaled sprite
2020-07-13 12:13:13 +01:00
Richard Davey
5b4423d6f3
Merge pull request #5135 from samme/feature/collide-use-static-tree
...
Always use static tree for collision checks
2020-07-13 12:03:18 +01:00
Richard Davey
2f48e5ee00
Merge pull request #5134 from samme/feature/arcade-physics-collisions-perf
...
Arcade Physics collisions optimizations
2020-07-13 12:02:38 +01:00
Richard Davey
b2a67754df
Merge pull request #5115 from samme/docs/body-drag-type
...
Correct docs corrections
2020-07-13 11:47:18 +01:00
samme
01ca4293e4
Fix missing _crop property
...
Fixes #5211
2020-07-08 12:04:23 -07:00
samme
1c2e15ac98
Update _dx and _dy during friction movement
2020-07-07 15:44:56 -07:00
samme
807aeed20c
Correct prev and prevFrame
2020-07-03 14:02:10 -07:00
samme
16e94d79eb
separateCircle fixes
2020-06-27 09:24:23 -07:00
samme
fd3c682646
Add Arcade.Body#updateFromGameObject
2020-06-05 10:32:05 -07:00
samme
dd7976699d
Docs: grammar
2020-06-01 09:57:36 -07:00
samme
c0b6027160
Add Arcade Physics types
2020-05-23 10:09:41 -07:00
samme
1ed0aaf8ba
Fix position from scaled sprite
2020-05-11 10:38:48 -07:00
samme
fa2e76c18c
Add missing config when passing children only
2020-05-11 10:24:01 -07:00
samme
6f3c0d2bb8
Don't discard config
2020-05-11 10:22:13 -07:00
samme
f374a4c045
Docs: Body descriptions
...
'boundary' is ambiguous, given the other bounds
2020-05-08 10:50:11 -07:00
samme
35672274bc
Docs: Correct description in ArcadeWorldConfig
2020-05-08 10:46:08 -07:00
samme
928ac2c31c
Docs for Phaser.Physics.Arcade.Body#facing
2020-05-06 10:26:27 -07:00
samme
b2eb6bfc43
Docs: Phaser.Physics.Arcade.World#useTree
...
Static bodies are always kept in an RTree
2020-05-05 15:32:49 -07:00
samme
62f0cf732a
Always search the static tree
2020-05-05 10:47:21 -07:00
samme
d80e4f5824
Skip intersects check by argument
2020-05-04 22:06:24 -07:00
samme
992af0b15e
Fast path for overlapOnly
2020-05-03 23:17:27 -07:00
samme
db8db69575
Correct type for Phaser.Physics.Arcade.Body#drag
...
Fixes #5100
2020-04-29 11:18:56 -07:00
Richard Davey
f770c433ce
Fixed types ( fix #5017 )
2020-04-27 15:23:00 +01:00
Richard Davey
ba76f61109
Merge pull request #4995 from samme/fix/checkCollision-none-vs-tile
...
Fix checkCollision none for tile collisions; and optimizations
2020-04-27 12:32:40 +01:00
Richard Davey
eaebcbd91f
Merge pull request #5033 from samme/fix/matter-common-isString
...
Fix 'TypeError: Invalid calling object' in IE
2020-04-27 12:23:46 +01:00
Richard Davey
625ca20a0e
Fix lint error introduced by #4989
2020-04-27 12:02:30 +01:00
Richard Davey
c8e0f91083
Merge pull request #4989 from jjcapellan/syncToRender
...
New property Arcade.World.fixedStep
2020-04-27 12:01:24 +01:00
Richard Davey
70a4b9843e
Merge pull request #5038 from halilcakar/master
...
Update JSDocs for events
2020-04-27 11:51:40 +01:00
samme
c0e5f201cd
Docs: Arcade Physics collisions
2020-04-23 10:50:33 -07:00
samme
a47408030b
Docs: Phaser.Physics.Arcade.Components.Friction
2020-04-21 15:08:49 -07:00
samme
d17c004787
Docs: correct description for Arcade.Body#drag
...
Fixes #5100
2020-04-21 11:10:43 -07:00