Svipal
b4a1473fea
test
2020-08-09 12:13:29 +02:00
Svipal
aae73c3cb8
fixed independent ttw calls in physics/arcade/World.js
2020-04-13 18:40:58 +02:00
samme
700d3b7316
Physics groups descriptions
2020-03-21 09:46:31 -07:00
Richard Davey
58d40fa9e0
Cache the vars
2020-02-04 23:56:50 +00:00
Richard Davey
1a493caa4b
Merge pull request #4970 from samme/fix/arcade-body-setSize-center
...
Fix centering in Body#setSize()
2020-02-04 11:26:17 +00:00
samme
7d5673a0c7
Fix wrong body dimensions from a scaled game object
2020-02-01 17:25:15 -08:00
samme
a312d03843
Docs for Phaser.Physics.Arcade.StaticBody
...
`offset` is read only
2020-02-01 16:30:25 -08:00
samme
c07c57f9f8
Correct center
2020-02-01 16:27:02 -08:00
samme
a13d623743
Correct dimensions from game object
2020-02-01 16:20:46 -08:00
samme
37c64dc0a9
Correct center
in constructor
2020-02-01 16:19:10 -08:00
samme
34176becb5
Correct position
in constructor
2020-02-01 16:18:52 -08:00
samme
bc39e70412
Fix centering Body in setSize()
2020-01-27 11:15:06 -08:00
Richard Davey
4a6b2087f7
Fixed internal callback handlers
2020-01-15 12:45:59 +00:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
c3940e15c6
PhysicsGroup
now uses the new internalCreateCallback
and internalRemoveCallback
to handle its body creation and destruction, allowing you to use your own createCallback
and removeCallback
as defined in the Group config. Fix #4420 #4657 #4822
2020-01-14 23:57:48 +00:00
Richard Davey
fb7f66838a
Marked width/height as readonly and added docs. Fix #4806
2020-01-14 22:45:55 +00:00
Richard Davey
8b9819b8f7
Merge pull request #4949 from samme/fix/collideSpriteVsSprite
...
Check for disabled body in collideSpriteVsGroup()
2020-01-13 11:34:36 +00:00
Andrew Brampton
e42f227ec2
Update documentation and one import, to use the consistent name of Vector2
.
...
There were examples that used Vec2, which wouldn't work. For example `An array of Point or Vector2 objects: [new Phaser.Math.Vec2(x1, y1), ...]` was not copy and pastable.
2020-01-11 06:46:25 -08:00
samme
eacb61e109
Check for disabled body in collideSpriteVsGroup()
2020-01-09 19:45:11 -08:00
samme
fa57f74b8f
Docs for Arcade Physics
2019-12-12 08:14:53 -08:00
Richard Davey
7ae124ff6e
Docs fix.
2019-12-09 08:57:24 +00:00
Richard Davey
44ff20d07e
Added deltaXFinal
and deltaYFinal
methods.
2019-12-09 08:55:37 +00:00
Richard Davey
dc6b080091
Merge pull request #4874 from samme/feature/overlapCirc
...
Add ArcadePhysics#overlapCirc()
2019-11-20 22:02:15 +00:00
Richard Davey
e5421c4ebf
Fixed namespace #4873
2019-11-20 22:00:17 +00:00
Richard Davey
ce2dbb7095
Merge pull request #4873 from samme/feature/group-type
...
Add `type` for Group, Arcade.Group, Arcade.StaticGroup
2019-11-20 21:54:10 +00:00
samme
b0f99db47d
Add ArcadePhysics#overlapCirc()
2019-11-20 12:21:53 -08:00
samme
8585541e15
Add type
for Group, PhysicsGroup, StaticPhysicsGroup
2019-11-20 11:53:38 -08:00
samme
e572921f38
Add targets
argument to closest(), furthest()
...
And exclude `source` from targets
2019-11-13 09:56:37 -08:00
samme
c46ab84fd9
Use body center in closest, furthest
2019-11-04 16:11:38 -08:00
Richard Davey
3a8a1f7b05
Added the new customBoundsRectangle config properties
2019-10-02 16:03:52 +01:00
Richard Davey
f0ed52c033
Tidy-up the customBoundsRectangle changes
2019-10-02 16:03:36 +01:00
Richard Davey
4f4b69123e
Merge branch 'master' into arcade_body_custom_bounds
2019-10-02 15:41:49 +01:00
Richard Davey
2c5b552bd5
Formatting tweak
2019-10-01 13:29:05 +01:00
Richard Davey
b78dbd81ac
Moved author block and fixed Body reset issue
2019-10-01 13:28:59 +01:00
Richard Davey
f16a16ba7d
Merge pull request #4729 from Gamefroot/arcade-physics-fps-fixes
...
Arcade physics fps fixes
2019-10-01 13:17:41 +01:00
Richard Davey
7584b9b17f
Merge pull request #4752 from funnisimo/separateCircle
...
FIX #4751 - Physics.Arcade.World.separateCircle - weird effects when …
2019-09-26 12:30:18 +01:00
Funnisimo
4455237967
need to do velocity based separation too
2019-09-19 14:13:07 -05:00
Funnisimo
b7ff2c02ae
FIX #4751 - Physics.Arcade.World.separateCircle - weird effects when bounce=0
2019-09-13 11:34:11 -05:00
Funnisimo
4bffc5a341
updated for lint
2019-09-12 10:09:47 -05:00
Funnisimo
bfcfde52f9
FIX : #4748 Physics.Arcade.Body.hitTest - bug with circles
2019-09-12 10:02:01 -05:00
Richard Davey
5b10c07d2e
ArcadePhysics.Body.checkWorldBounds
would incorrectly report as being on the World bounds if the blocked.none
flag had been toggled elsewhere in the Body. It now only sets if it toggles a new internal flag
2019-09-05 16:06:08 +01:00
Ben Richards
95d413dc3f
Fix friction issues at low frame rates or repeated physics steps.
...
- Add `prevFrame` to hold previous frame positions (`prev` now holds
previous step positions explicitly).
- Reset `prev` per step, fixing physics that relies on it.
- Remove `_reset` in favour of `moves`, which was all it ever checked.
Ironically, `_reset` never reset itself.
- Remove some `postUpdate` property setting which is now unnecessary.
The `prev` values now update just before they're used, so if you check
them outside the physics step, they reflect the previous step.
- Reset `World#stepsLastFrame` per frame, so it won't get stuck on.
2019-08-29 10:06:10 +12:00
Ben Richards
fd0dd79417
Prevent objects from sinking into tilemaps at low frame rates.
...
Because `blocked` would be set by the first collision,
repeated steps would then skip it, and allow gravity or acceleration
to ignore tiles in that direction for those steps.
2019-08-29 10:06:10 +12:00
Richard Davey
6c575ca20e
Arcade.Events.WORLD_STEP
is a new event you can listen to. It is emitted by the Arcade Physics World every time the world steps once. It is emitted _after_ the bodies and colliders have been updated. Fix #4289
2019-06-19 15:41:45 +01:00
Richard Davey
ef4b3cfe89
Improved update
handler to cut down on body iteration and stepping without an update due. Fix #4529
2019-06-19 15:32:17 +01:00
Richard Davey
96298cf920
Added new resetFlags
method and willStep
and delta
arguments to preUpdate
.
2019-06-19 15:31:29 +01:00
Richard Davey
b917a0611f
ESLint fix
2019-06-19 09:46:38 +01:00
Richard Davey
57fd8c9ce1
Merge pull request #4540 from BdR76/patch-2
...
drawDebug, display checkCollision sides
2019-06-19 09:28:31 +01:00
Richard Davey
932583402c
Merge pull request #4589 from samme/x/arcade-static-body-setSize
...
Change arguments to Arcade.StaticBody#setSize
2019-06-19 09:21:00 +01:00
samme
7bba56be16
Change arguments to StaticBody#setSize
...
`center` replaces `offsetX`, `offsetY`
2019-06-12 10:59:07 -07:00