Zeke Chan
ea0651f44d
Removed MatterCollisionEvents
, MatterAttractors
, MatterWrap
plugins
2024-06-28 17:32:33 +08:00
Zeke Chan
2ec9e38405
Added wrap to bounds feature
2024-06-28 17:31:50 +08:00
Zeke Chan
8667f5dd38
Added wrap to bounds feature
2024-06-28 17:31:41 +08:00
Zeke Chan
a69bacbb5c
Added wrap to bounds feature
2024-06-28 17:31:31 +08:00
Zeke Chan
2512f65da0
Added wrap to bounds feature
2024-06-28 17:31:27 +08:00
Zeke Chan
df2e7e7104
Update MatterWorldConfig.js
2024-06-28 16:29:38 +08:00
Zeke Chan
e0aed1aacf
Update MatterWorldConfig.js
2024-06-28 15:43:57 +08:00
Zeke Chan
05a814dc1d
Update World.js
...
Updated `pair.activeContacts.length` to use new `pair.contactCount` property
2024-06-27 17:06:44 +08:00
Zeke Chan
0458e4ab01
Update MatterCollisionPair.js
...
Changed `activeContacts` to `contacts`
2024-06-27 17:05:39 +08:00
Richard Davey
c45e2f4dba
MatterJS v0.20 integration
2024-06-25 18:51:12 +01:00
Zeke Chan
1b965326d4
Update World.js
...
Added pushable property collision checking when both bodies are set to circles
2024-06-11 15:36:09 +08:00
samme
fbc7f57c28
Docs: note velocity units
...
Phaser.Physics.Arcade.Components.Velocity
2024-04-17 06:54:31 -07:00
Robert Kowalski
9d155d8dde
Revert "Add bounce event to arcade physics Fix #6406 "
...
This reverts commit 542bac2d02
.
2024-02-21 07:22:57 -05:00
Richard Davey
d70e3f453c
The ArcadePhysics.World.collideSpriteVsTilemapLayer
method has been modified so that the body bounds are now expanded by the size of the scaled base tile in the Tilemap Layer. This fixes an issue where the check would skip over-sized tiles that were outside the bounds of the body. Mostly noticeable on layers that had a different base tile size to the map itself. Fix #4479
2024-02-21 01:11:43 +00:00
Robert Kowalski
542bac2d02
Add bounce event to arcade physics Fix #6406
2024-02-20 17:16:32 -05:00
Richard Davey
1f8276ac76
Updated copyright year, company and author
2024-02-19 17:12:24 +00:00
Richard Davey
76903fcdb9
Merge pull request #6719 from Stan-Stani/master
...
docs: clarify overlapOnly param
2024-02-19 14:31:29 +00:00
biometricPsychography
27f0a822c8
docs: move overlapOnly
caveat to the @classdesc
2024-02-03 13:26:22 -06:00
Robert Kowalski
2cf82a9b54
Merge pull request #6730 from samme/fix/static-body-reset-offset
...
Reapply offset when resetting static body
2024-02-02 16:17:23 -05:00
Robert Kowalski
0f55324632
pointerConstraint can't getWorldPoint with no camera. Fix #6684
2024-02-01 13:10:30 -05:00
Richard Davey
cf27547793
The Matter.Body
function scale
has been updated so if the Body originally had an inertia
of Infinity
this will be restored at the end of the call. This happens if you set a Matter Body to have fixed rotation. Fix #6369
2024-01-31 20:32:10 +00:00
samme
5ec9508c35
Reapply offset when resetting static body
2024-01-31 07:53:54 -08:00
biometricPsychography
631dc01f91
docs: clarify overlapOnly param
...
in Phaser.Physics.Arcade.Collider
Explain that the callback will trigger on any overlap with any part of a tileLayer
2024-01-26 20:48:26 -06:00
Richard Davey
786a3933cd
Factory.staticBody
had the wrong return type in the docs/TS defs. Fix #6693
2024-01-12 18:18:06 +00:00
Richard Davey
0b32610e56
Updated version to 3.70
2023-11-10 15:04:01 +00:00
Richard Davey
b44b2eda5a
Revert "Merged all of the Matter JS "Improved performance and reduced memory usage" changes from PR 1238"
...
This reverts commit bfd08db935
.
2023-11-10 14:58:18 +00:00
Richard Davey
1cae6391b3
Revert "Testing sleep static fixes"
...
This reverts commit f0d5280cf8
.
2023-11-10 14:58:02 +00:00
Richard Davey
f0d5280cf8
Testing sleep static fixes
2023-11-10 13:44:47 +00:00
Richard Davey
bfd08db935
Merged all of the Matter JS "Improved performance and reduced memory usage" changes from PR 1238
2023-11-09 22:12:12 +00:00
Richard Davey
4d555958de
Added setDirectControl to allow a body to calculate velocity from position changes
...
Also added component method and internal autoFrame vec2.
2023-10-26 23:03:08 +01:00
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
ae24bc9d03
Updated GetCollidesWith
2023-10-04 21:31:54 +01:00
Richard Davey
f7f070eedf
Merge all the functions into the component
2023-10-04 21:30:50 +01:00
Richard Davey
6bfaa94c4d
Add Collision Component mixin
2023-10-04 21:30:41 +01:00
Richard Davey
07620231e5
Add Collision Component and properties
2023-10-04 21:30:27 +01:00
Richard Davey
3268650dcb
Make Collision Component capable of working with Groups and Tilemap Layers
2023-10-04 17:09:37 +01:00
Richard Davey
0cb99a7ecf
Added canCollide
method and used it in all collision checks
2023-10-04 16:29:07 +01:00
Richard Davey
fd899c03e8
Update SetCollisionObject.js
2023-10-04 16:28:29 +01:00
Richard Davey
2461bf076a
Added collision category, collision mask and related methods
2023-10-04 16:28:22 +01:00
Richard Davey
922b756503
Added collision category marker and nextCategory
method
2023-10-04 16:27:37 +01:00
Richard Davey
eda08c20f5
Exposed Collision Component
2023-10-04 16:26:20 +01:00
Richard Davey
a08c25fd35
Added Collision component
2023-10-04 16:26:11 +01:00
Richard Davey
279a25ca88
Create Collision.js
2023-10-04 16:23:23 +01:00
Richard Davey
4e61b9fd13
Create ArcadeCollider.js
2023-10-04 16:23:17 +01:00
Richard Davey
9121ea527d
Create SetCollidesWith.js
2023-10-04 16:23:13 +01:00
Richard Davey
e25e2489c4
Update SetCollisionObject.js
2023-10-04 12:49:27 +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
563137ac78
Typo fix
2023-10-04 11:57:24 +01:00