Richard Davey
|
5cb7d8484f
|
Added Game Object level collision events
|
2019-12-18 02:22:37 +00:00 |
|
Richard Davey
|
a7c644454f
|
Update PhysicsEditorParser.js
|
2019-12-17 18:04:10 +00:00 |
|
Richard Davey
|
e6b43a2f48
|
Improves jsdocs
|
2019-12-17 18:03:23 +00:00 |
|
Richard Davey
|
efcbd1e4e5
|
Added helper methods for setting body collision callbacks
|
2019-12-17 16:42:46 +00:00 |
|
Richard Davey
|
f64d3e59d0
|
Per-body collision callbacks
|
2019-12-17 16:42:30 +00:00 |
|
Richard Davey
|
0d62f60f60
|
Removed un-used properties, functions and docs
|
2019-12-17 16:42:16 +00:00 |
|
Richard Davey
|
21a6458608
|
Added new collision pair type defs
|
2019-12-17 16:41:58 +00:00 |
|
Richard Davey
|
ac124b8e20
|
Better handling of the runner config
|
2019-12-17 13:52:57 +00:00 |
|
Richard Davey
|
1412e1f4f9
|
Added typedef for Matter Runner config
|
2019-12-17 13:52:46 +00:00 |
|
Richard Davey
|
a158b14228
|
Matter.World.has is a new method that will take a Matter Body, or Game Object, and search the world for it. If found, it will return true .
|
2019-12-17 13:15:15 +00:00 |
|
Richard Davey
|
67a6fa81f9
|
Added jsdocs and property
|
2019-12-17 13:08:32 +00:00 |
|
Richard Davey
|
d260643c61
|
Stricter checks against body removal and addition
|
2019-12-17 13:07:16 +00:00 |
|
Richard Davey
|
29525868ff
|
Added jsdocs
|
2019-12-17 13:06:11 +00:00 |
|
Richard Davey
|
43b111dc3e
|
Removed unused code and tidied up the Phaser specific additions
|
2019-12-17 13:06:01 +00:00 |
|
Richard Davey
|
9c43681b79
|
Added jsdocs and off handler
|
2019-12-17 13:05:37 +00:00 |
|
Richard Davey
|
37b2fbd044
|
Removed calcOffset
|
2019-12-17 13:05:16 +00:00 |
|
Richard Davey
|
1a50665ce1
|
Function not triggering properly. Adding to Body directly.
|
2019-12-17 02:14:54 +00:00 |
|
Richard Davey
|
819a6b20ae
|
Walking through Matter compare merge
|
2019-12-16 17:12:12 +00:00 |
|
Richard Davey
|
f9e5246af0
|
Refactored so ops are done when the engine udates, not when the dom updates
|
2019-12-13 19:41:47 +00:00 |
|
Richard Davey
|
87a8af35c5
|
Added in Matter Runner
|
2019-12-13 19:41:27 +00:00 |
|
Richard Davey
|
604531d70a
|
Disable sync verts for now
|
2019-12-13 19:41:18 +00:00 |
|
Richard Davey
|
e117a679d2
|
Still fix sleeping
|
2019-12-13 01:16:54 +00:00 |
|
Richard Davey
|
63083882d3
|
MatterGameObject has a new optional boolean parameter addToWorld which lets you control if the Body should be added to the world or not. Useful for toggling off should you be merging pre-existing bodies with Game Objects.
|
2019-12-12 17:15:00 +00:00 |
|
Richard Davey
|
7ba6e9fe6b
|
Added setCompositeRenderStyle method
|
2019-12-12 13:31:47 +00:00 |
|
Richard Davey
|
093557a6ea
|
Removed worldConstraint changes
|
2019-12-12 13:31:36 +00:00 |
|
Richard Davey
|
03e67e2c50
|
Added docs and Body level syncVerts property
|
2019-12-12 12:41:11 +00:00 |
|
Richard Davey
|
01fa4d2c54
|
Fix handling of centerOfMass
|
2019-12-11 16:06:15 +00:00 |
|
Richard Davey
|
7a2c434ffc
|
Remove deprecated code
|
2019-12-11 16:06:01 +00:00 |
|
Richard Davey
|
4032f87368
|
Fixed handling deeply nested bodies
|
2019-12-11 16:05:52 +00:00 |
|
Richard Davey
|
4b14e489af
|
Added start of fromJSON
|
2019-12-11 15:01:05 +00:00 |
|
Richard Davey
|
69eec0add9
|
Fixed overlap method
|
2019-12-11 15:00:51 +00:00 |
|
Richard Davey
|
c267662259
|
Update World.js
|
2019-12-11 15:00:41 +00:00 |
|
Richard Davey
|
30750d1208
|
Update PhysicsEditorParser.js
|
2019-12-11 13:07:04 +00:00 |
|
Richard Davey
|
826431c7fa
|
Tidying up
|
2019-12-11 13:06:07 +00:00 |
|
Richard Davey
|
19fc914a5b
|
PhysicsEditorParser.parseVertices now uses Bodies.flagCoincidentParts to avoid duplicating code.
|
2019-12-11 13:05:58 +00:00 |
|
Richard Davey
|
f5908fee8f
|
Matter.Bodies.flagCoincidentParts is a new function that will flags all internal edges (coincident parts) on an array of body parts. This was previously part of the fromVertices function, but has been made external for outside use.
|
2019-12-11 13:05:49 +00:00 |
|
Richard Davey
|
bf00d63cc6
|
Body.syncVerts is a new function that will re-sync the vert positions with the body position. Called if Engine.syncVerts is set (which is now the default)
|
2019-12-10 17:53:44 +00:00 |
|
Richard Davey
|
a910a27349
|
Engine.syncVerts is a new Engine config property that allows you to run a vert re-sync at the end of the Engine step. This can help massively if you find you've got verts drifting out of alignment with the body position when using pointer contraints, or high velocity environments. Uses the new Engine._bodiesSync function.
|
2019-12-10 17:52:37 +00:00 |
|
Richard Davey
|
444bdf116f
|
Debug tweaks
|
2019-12-10 17:50:04 +00:00 |
|
Richard Davey
|
c6bfaa8e4a
|
Vertices.calcOffset is a new function that calculates the vert body position offset, used for keeping data in sync.
|
2019-12-10 17:49:41 +00:00 |
|
Richard Davey
|
4f3a524114
|
Update World.js
|
2019-12-10 14:02:50 +00:00 |
|
Richard Davey
|
b7343f3424
|
Bumped Matter Plugin versions to avoid console logs from Common.info and Common.warn.
|
2019-12-10 14:02:10 +00:00 |
|
Richard Davey
|
56929fb8c6
|
Removed use of Common.indexOf (no need for it)
|
2019-12-10 12:07:03 +00:00 |
|
Richard Davey
|
118aa3a941
|
Format fix
|
2019-12-10 12:05:12 +00:00 |
|
Richard Davey
|
0e95c1ad19
|
Merged Body.setCentre
|
2019-12-10 12:03:27 +00:00 |
|
Richard Davey
|
dc127081eb
|
Merged new pointAWorld and pointBWorld functions
|
2019-12-10 12:01:58 +00:00 |
|
Richard Davey
|
257c00228b
|
Removed un-used _requireGlobal function
|
2019-12-10 12:01:42 +00:00 |
|
Richard Davey
|
f22c3ad17d
|
New fromPath reg exp
|
2019-12-10 12:01:24 +00:00 |
|
Richard Davey
|
5b17e35a87
|
Format tidy-up
|
2019-12-10 12:01:14 +00:00 |
|
Richard Davey
|
7bdcb5a892
|
Temp bounds debug
|
2019-12-10 02:42:16 +00:00 |
|