Richard Davey
fbec8aebc9
Working through auto update optimizations
2023-10-26 22:03:18 +01:00
Richard Davey
f4a9b993cc
Testing Body.autoUpdate
2023-10-26 19:02:19 +01:00
Richard Davey
6bfaa94c4d
Add Collision Component mixin
2023-10-04 21:30:41 +01:00
Richard Davey
2461bf076a
Added collision category, collision mask and related methods
2023-10-04 16:28:22 +01:00
Richard Davey
49e97291cf
SetCollisionObject
is a new function that Arcade Physics bodies use internally to create and reset their ArcadeBodyCollision
data objects.
2023-10-04 12:46:58 +01:00
Richard Davey
b364995f2f
Added Body.slideFactor vec2
...
* Arcade Physics Bodies have a new property called `slideFactor`. This is a Vector2 that controls how much velocity is retained by a Body after it has been pushed by another Body. The default value is 1, which means it retains all of its velocity. If set to zero, it will retain none of it. This allows you to create a Body that can be pushed around without imparting any velocity to it.
* `Body.setSlideFactor` is a new method that sets the Body's `slideFactor` property.
2023-10-04 11:57:37 +01:00
Richard Davey
aa3e1d17ce
Updated documentation
2023-02-27 16:26:04 +00:00
samme
ca2cef5281
Set blocked.none in processX(), processY()
2023-01-22 10:30:42 -08:00
Richard Davey
468bf7821d
Updated copyright year
2023-01-02 17:36:27 +00:00
Richard Davey
4bd64129e9
Only checkWorldBounds in Body.reset if the Body collides with it
2022-10-11 01:45:21 +01:00
Richard Davey
13b6598558
The Physics.Arcade.Body.reset()
method will now call Body.checkWorldBounds
as part of the process, moving the body outside of the bounds, should you have positioned it so they overlap during the reset. Fix #5978
2022-07-28 18:35:56 +01:00
Richard Davey
132ab9cdbd
Added isBody
property
2022-07-04 16:39:53 +01:00
Richard Davey
20c597738f
Made gameObject optional and added setGameObject method
2022-07-04 15:54:53 +01:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
Richard Davey
2546096b64
Fixed JSDocs. Close #5836
2021-09-21 11:33:01 +01:00
samme
ea7a9aa132
Docs: damping in Phaser.Physics.Arcade.Body#drag
2021-02-23 09:53:42 -08:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
Richard Davey
ca8f201e8a
Merge pull request #5388 from samme/feature/scale-damping
...
Scale damping by the physics step delta
2020-11-09 17:07:30 +00:00
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
samme
130160f825
Update center after world bounds collision
2020-10-03 13:46:11 -07:00
samme
9a348409e3
Update center after separation
2020-10-01 10:42:30 -07:00
Richard Davey
34be82a20c
Added processX and processY methods
2020-09-28 15:25:28 +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
69b8458bb8
Added new pushable
component
2020-09-24 18:09:49 +01:00
samme
426c9632c7
Set maxVelocity in PhysicsGroupConfig
2020-09-22 16:05:21 -07: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
samme
b0ce62e2d8
Docs: correct type for Body#customBoundsRectangle
2020-09-08 18:44:12 -07: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
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
853feea355
Merge pull request #5183 from samme/feature/body-updateFromGameObject
...
Add Arcade.Body#updateFromGameObject
2020-07-13 12:39:45 +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
807aeed20c
Correct prev and prevFrame
2020-07-03 14:02:10 -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
f374a4c045
Docs: Body descriptions
...
'boundary' is ambiguous, given the other bounds
2020-05-08 10:50:11 -07:00
samme
928ac2c31c
Docs for Phaser.Physics.Arcade.Body#facing
2020-05-06 10:26: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
70a4b9843e
Merge pull request #5038 from halilcakar/master
...
Update JSDocs for events
2020-04-27 11:51:40 +01:00
samme
d17c004787
Docs: correct description for Arcade.Body#drag
...
Fixes #5100
2020-04-21 11:10:43 -07:00
halilcakar
43f26ad31f
Update JSDocs for events
2020-03-10 11:11:43 +03: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
37c64dc0a9
Correct center
in constructor
2020-02-01 16:19:10 -08:00