Richard Davey
44ff20d07e
Added deltaXFinal
and deltaYFinal
methods.
2019-12-09 08:55:37 +00: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
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
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
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
77859b1cdf
Calling Arcade Physics Body.reset
on a Game Object that doesn't have any bounds, like a Container, would throw an error about being unable to access getTopLeft
. If this is the case, it will now set the position to the given x/y values
2019-06-11 18:20:56 +01:00
Markus Appel
5ff9b20668
Correct docs of arcade physics body member
2019-06-09 12:22:15 +02:00
BdR76
717c89d79b
Changed if-statements to multiple lines
...
Changed the if-statements to multiple lines as per ESLint config
2019-05-31 13:15:23 +02:00
BdR76
f28df06bcf
drawDebug, display checkCollision sides
...
drawDebug, instead of rectangle only draw the sides where checkCollision is true, similar to debugger in layer
2019-05-19 14:49:15 +02:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
fbe2470f99
Arcade Physics Types
2019-05-09 12:33:37 +01:00
Richard Davey
dcf2d44f4a
Removed un-used properties
2019-05-03 17:38:37 +01:00
Richard Davey
bf741e962c
Restored Arcade Physics v1 and merged in all the core changes
2019-05-03 17:28:06 +01:00
Richard Davey
3075e088c7
Added directX and directY properties as well as setDirectPosition method.
2019-04-01 23:15:00 +01:00
Richard Davey
64d8f928d0
Fixed sleeping and strengthening direct control movement.
2019-04-01 17:19:38 +01:00
Richard Davey
b97bf51329
Removed positionIterations
2019-03-28 23:35:09 +00:00
Richard Davey
535388b828
Added Distance Threshold and seeking
2019-03-28 23:32:46 +00:00
Richard Davey
cb77405031
Better seek handling
2019-03-28 14:58:51 +00:00
Richard Davey
7a05c205b1
Docs fix
2019-03-27 15:51:55 +00:00
Richard Davey
cc1b96a309
The Body.setCollideWorldBounds
method has two new optional arguments bounceX
and bounceY
which, if given, will set the World Bounce values for the body.
2019-03-27 11:53:34 +00:00
Richard Davey
2b4568cf05
Body no longer sleeps if rotating and fixed moving a rebounding object
2019-03-27 10:46:42 +00:00
Richard Davey
c819599304
Use of a Game Object bound to a body is now optional
2019-03-27 00:20:49 +00:00
Richard Davey
811ed0e340
Dynamic and Static both now extend the Base Body.
2019-03-26 16:51:15 +00:00
Richard Davey
5bb2161d49
Fixed issue with non zero origins
2019-03-26 15:29:58 +00:00
Richard Davey
ab2f489c5a
Renamed ambiguous movingX/Y
, also broke out moveX
to checkX
and tidied up more
2019-03-26 13:07:57 +00:00
Richard Davey
9b65f1bcc6
Moved sleep checks around
2019-03-26 00:05:09 +00:00
Richard Davey
c58526fc74
Tidying up and resolving fractional comparisons
2019-03-25 17:25:39 +00:00
Richard Davey
3e499831cc
Added functions for left / right checks
2019-03-25 12:55:31 +00:00
Richard Davey
1f07eaa79f
Testing rideable bodies
2019-03-24 23:30:38 +00:00
Richard Davey
de08c9b0db
Removed lots of un-used vars and added 'rideable' support
2019-03-22 19:07:06 +00:00
Richard Davey
b48247dada
Body now wakes from direct velocity property modification
2019-03-22 15:01:47 +00:00
Richard Davey
ad9a0fad00
Fixed body waking situations
2019-03-22 14:48:00 +00:00
Richard Davey
cf504ac9c2
Body.setVelocity
was cause the speed
property to be set to NaN
if you didn't provide a y
argument.
2019-03-22 13:16:37 +00:00
Richard Davey
bef0b163a2
Clear snapTo
2019-03-22 12:50:28 +00:00
Richard Davey
4d4c5353ec
Added World positionIterations property to help settle busy scenes
2019-03-22 12:18:34 +00:00
Richard Davey
7c5f6adfe8
Don't apply the force until postUpdate - resolves all issues with body spacing :)
2019-03-22 11:34:23 +00:00
Richard Davey
963ed11cb4
Fixed getMove flow
2019-03-22 02:39:10 +00:00
Richard Davey
06acf492bc
Refactored getMoveY
2019-03-22 02:29:48 +00:00
Richard Davey
ec67d02b21
Blockers is now a face array and added hardBlocked support
2019-03-22 01:17:32 +00:00
Richard Davey
19bfe38d04
Resolved issue with bounds penetration (finally)
2019-03-21 23:21:02 +00:00
Richard Davey
9cabcd5d73
Tidying up
2019-03-21 17:24:34 +00:00
Richard Davey
0005cf590e
Resolved bounds sleep issue
...
Now to create collision info objects for sleep settling.
2019-03-21 11:31:05 +00:00
Richard Davey
6a145049b1
Testing issue with sticky bodies
2019-03-21 01:02:38 +00:00