Richard Davey
f0c6bd63bd
The Matter Physics ignoreGravity
boolean is now checked during the Matter Engine internal functions, allowing this property to now work again. Fix #6473
2023-07-21 17:40:47 +01:00
Richard Davey
69841028bb
Matter.convertTilemapLayers
had an edge-case which could create composite bodies unintentionally. If any tiles had multiple colliders and you were providing body creation options, the parts
property in the options would be modified and then concatenated with any bodies created after it. This could mean that some tiles would be combined when they shouldn't be, and on large maps would eventually hang once the convex hull got too big / complex. It now runs a copy on the object before using it - fix #5977
2023-04-12 03:08:52 +01:00
Richard Davey
4e18d35098
Fixed doc types
2023-04-04 17:55:56 +01:00
Richard Davey
8adbb15c13
Added new Matter Body methods (velocity and speed)
2023-04-04 15:05:42 +01:00
Richard Davey
0a8f9a9f04
Fixed jsdoc types
2023-04-04 15:05:11 +01:00
Richard Davey
24c85af875
Upgrade to MatterJS v0.19
2023-04-03 22:01:39 +01:00
Richard Davey
b5f1b2b588
The MatterTileBody
class, which is created when you convert a Tilemap into a Matter Physics world, will now check to see if the Tile has flipX
or flipY
set on it and rotate the body accordingly. Fix #5893
2023-03-22 17:45:18 +00:00
Richard Davey
c8acb16fa7
Added { willReadFrequently }
to every canvas context, no matter where it comes from
2023-03-09 17:30:04 +00:00
Richard Davey
884a2f1fad
Added Matter Walls type
2023-02-01 18:08:40 +00:00
Richard Davey
dae80ee845
Update MatterWorldConfig.js
2023-01-27 17:45:32 +00:00
Richard Davey
468bf7821d
Updated copyright year
2023-01-02 17:36:27 +00:00
Richard Davey
2a8250ef60
Modified return types to 'this'
2022-11-03 16:03:51 +00:00
Richard Davey
023343c789
All events have a type of string. Fix #6136
2022-09-21 22:01:03 +01:00
Richard Davey
1020f72e4b
Fixed type
2022-05-10 18:07:17 +01:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
Richard Davey
af07ed11cf
Extract flagCoincidentParts function
2022-02-04 14:49:51 +00:00
Richard Davey
50e3202a87
Set the decomp library
2022-02-04 14:49:27 +00:00
Richard Davey
749c9a8af3
Removed un-used modules and properties
2022-02-04 14:22:01 +00:00
Richard Davey
78417b3033
Upgraded Matter Physics to the v0.18 release
2022-02-03 18:44:17 +00:00
Richard Davey
8a941dce98
Added optional shape config
2021-10-27 13:19:40 +01:00
Ikko Ashimine
21b11d8f7b
Fix typo in MatterCollisionPair.js
...
occured -> occurred
2021-07-07 16:40:53 +09:00
Richard Davey
74fd1531bc
Matter.Components.Sleep.setToSleep
and setAwake
were documented as returning this
, however they didn't return anything. Both now return this
correctly. Fix #5567
2021-02-17 13:08:24 +00:00
Erik Demaine
3accf46223
Fix setPolygon documentation
...
The order of arguments in `Body.setPolygon`'s documentation was the opposite from the actual code.
2021-01-22 20:13:25 -05:00
Richard Davey
28d925b875
JSDoc fixes
2020-11-23 15:06:45 +00:00
Richard Davey
417f7684c3
More integer to number changes
2020-11-23 10:32:00 +00:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
Richard Davey
e450bf2f1f
Swap to using constants for pipeline names
2020-09-09 13:05:18 +01:00
Richard Davey
cdd612a273
AnimationState has moved namespace to keep things logically together
2020-09-08 09:31:59 +01:00
Richard Davey
6eae9ca598
Fixed reference
2020-09-07 10:26:10 +01:00
Richard Davey
bba8285665
Return type fix
2020-09-03 11:27:12 +01:00
Richard Davey
07865a5823
Final set of namespace changes. Fix #5062
2020-09-01 20:28:42 +01:00
Richard Davey
0dd07333af
Updated to use MultiPipeline
2020-08-21 16:14:59 +01: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
Richard Davey
dea68135fd
Correct texture type. Fix #5199
2020-07-13 13:29:01 +01:00
samme
01ca4293e4
Fix missing _crop property
...
Fixes #5211
2020-07-08 12:04:23 -07:00
Richard Davey
f770c433ce
Fixed types ( fix #5017 )
2020-04-27 15:23:00 +01:00
samme
98a6f7d4bd
Fix 'TypeError: Invalid calling object' in IE
2020-03-02 12:39:13 -08:00
Richard Davey
52b3176771
Update MatterTileBody.js
2020-01-28 23:25:51 +00:00
Richard Davey
d56a6c8790
MatterTileBody
now extends EventEmitter
, meaning you can listen to collision events from Tiles directly and it will no longer throw errors about gameObject.emit
not working. Fix #4967
2020-01-28 23:25:12 +00:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
f15ef8648e
Lots of type fixes
2020-01-14 17:11:07 +00:00
Richard Davey
91e59ab39a
Update MatterPhysics.js
2020-01-14 14:59:35 +00:00
Richard Davey
1c6e8df436
Update MatterPhysics.js
2020-01-13 17:10:19 +00:00
Richard Davey
51aa5d019d
Removed namespace as it conflicts with TypeScript defs
2020-01-13 13:28:50 +00:00
Richard Davey
9c0b77db92
Fixed JSDocs
2020-01-13 13:28:24 +00:00
Richard Davey
271e4e3943
Use FuzzyEquals for safety
2020-01-13 11:33:21 +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
Richard Davey
cf1e4645f3
Ignore if CoM is 0.5
2020-01-10 18:05:20 +00:00
Richard Davey
f90d679d22
Added setToSleep and setAwake methods
2020-01-10 17:39:40 +00:00
Richard Davey
d884fd0468
Handle scaled bodies properly
2020-01-10 17:03:50 +00:00