Commit graph

904 commits

Author SHA1 Message Date
Richard Davey
a605ad8d0c Handle nonn intersects aborts 2019-03-14 14:16:15 +00:00
Richard Davey
343964dd3a Removed debug stuff and fixed array vs. array iteration 2019-03-14 14:15:58 +00:00
Richard Davey
3b53057257 Fixed prev distance calculation + added intersects check 2019-03-14 14:15:43 +00:00
Richard Davey
dc31e39e01 Pushing to carry on debugging at home 2019-03-13 17:27:11 +00:00
Richard Davey
9ad4ed6d8f Overlap sharing implemented, allowing bounce to work again 2019-03-13 02:27:51 +00:00
Richard Davey
e42936314c Test previous difference too, to mitigate tunneling 2019-03-13 02:27:11 +00:00
Richard Davey
395e4d0554 Cache vars 2019-03-13 02:26:52 +00:00
Richard Davey
5b4b2d2fa9 Fixed issue re: would bounce 2019-03-11 22:47:59 +00:00
Richard Davey
24921d653b Added body filtering back 2019-03-11 22:47:48 +00:00
Richard Davey
b228e23dfd Added blocked debug 2019-03-11 17:28:43 +00:00
Richard Davey
afd1dac03c Move flag responsibility back in 2019-03-11 17:28:23 +00:00
Richard Davey
3ab9da8f04 Test just Y for now 2019-03-11 17:27:55 +00:00
Richard Davey
dea9a06dd2 Reworked the logic to reduce quantity of flags 2019-03-11 17:27:29 +00:00
Richard Davey
59859e93a7 Reset velocity on world bounds and blocked by setting 2019-03-11 12:26:58 +00:00
Richard Davey
f8b59e3e14 Added embedded check 2019-03-11 12:26:23 +00:00
Richard Davey
1d5dbb960a A Body can only be blocked by 1 object per frame 2019-03-11 12:26:11 +00:00
Richard Davey
09cb8db2d8 Removed logging 2019-03-11 11:05:58 +00:00
Richard Davey
70f6484716 Flag swizzles ahoy 2019-03-11 11:05:51 +00:00
Richard Davey
932f70cea2 Removed logging and handled bounds collision 2019-03-11 11:05:42 +00:00
Richard Davey
89e33ae53e Testing. Please do not use this build, it will break AP. 2019-03-11 09:19:41 +00:00
Richard Davey
9db9511bf1 Working on new blocked flag setting 2019-03-08 20:12:49 +00:00
Richard Davey
e27196ce52 Removed responsibility for flag setting from overlay, also return a value all the time, not just in motion 2019-03-08 20:11:27 +00:00
Richard Davey
e1f9e31e9f Added setTouching and setBlocked methods + refactored the way world bounds collision is done 2019-03-08 20:10:49 +00:00
Richard Davey
08d4961aab Allow to pass in a single array to check against itself 2019-03-08 20:09:18 +00:00
Richard Davey
e5fbe13649 Updated docs 2019-03-08 19:54:46 +00:00
Richard Davey
8839ab1c0e Added the new overlapRect method. 2019-03-07 15:16:31 +00:00
Richard Davey
8e872fcb51 Fixed closest and furthest when the RTree is disabled 2019-03-07 14:13:45 +00:00
Richard Davey
d36ada0386 Added collideTiles and overlapTiles to AP. 2019-03-07 13:36:15 +00:00
Richard Davey
0ee2442597 Bumping to 3.17.0 2019-03-07 12:31:06 +00:00
Richard Davey
95d47a429d Tidying up 2019-03-05 14:46:41 +00:00
Richard Davey
8167d6d305 New isLayer handling 2019-03-05 14:43:20 +00:00
Richard Davey
d160df3194 Removed late Set, optimized step process and added overlapTiles and collideTile methods. 2019-03-05 14:42:15 +00:00
Richard Davey
6095ab0ef6 Split the Body step up into preUpdate, update and postUpdate. Also tidied up the postUpdate method. 2019-03-05 14:17:57 +00:00
sky-coding
bab6a0bd69 remove erroneous doc comment parameter 2019-02-20 20:48:09 -08:00
Richard Davey
0479badd6e Properties are optional 2019-02-13 17:20:10 +00:00
Richard Davey
42cb39749f Matter and Snapshot typedefs 2019-02-13 15:22:29 +00:00
Richard Davey
b4dbfea0a1 Impact typedefs 2019-02-13 15:05:16 +00:00
Richard Davey
3bb73c5664 Fixed Group defs and completed Arcade Physics defs 2019-02-13 14:45:36 +00:00
Richard Davey
e7b1d086e7 Moving all of the typedefs to properly namespaced scopes, rather than globals
\o/ ~ "Someone, save me!"
2019-02-13 12:35:12 +00:00
Richard Davey
b50e1c78b5 Lots more jsdoc tweaks and improvements 2019-02-12 15:01:54 +00:00
Richard Davey
dc73993fe2 Added jsdoc version numbers 2019-02-12 12:22:25 +00:00
Richard Davey
ccaae460a4 Added jsdoc version numbers to each event 2019-02-12 11:37:58 +00:00
Richard Davey
62399a3aa5 Removed un-used package 2019-02-10 17:33:51 +00:00
Richard Davey
0ab61ac6de When the Matter World creates its wall bounds, the left and right walls now extend further up and down than before, so that in a 4-wall setting there are no gaps in the corners, which previously allowed for fast moving objects that hit a corner intersection point to sometimes travel through it. 2019-02-09 16:27:20 +00:00
Richard Davey
fd8d75ab02 Refactored the Pointer Constraint to make it work more like a real pointer does, added missing events, added full jsdocs. 2019-02-09 16:02:21 +00:00
Richard Davey
7041601893 Added drag events to Pointer Constraint 2019-02-09 14:58:42 +00:00
Richard Davey
bb83f4803e Testing Pointer events. 2019-02-08 19:46:23 +00:00
Richard Davey
5f03d2cd5e Testing Composite.remove, instead of removeBody. 2019-02-08 19:46:13 +00:00
Richard Davey
0b4dc5f037 Should be a config setter. 2019-02-04 21:50:55 +00:00
Richard Davey
60542a25cc Numerous jsdoc and TS related fixes 2019-02-04 17:16:08 +00:00