Commit graph

52 commits

Author SHA1 Message Date
Richard Davey
468bf7821d Updated copyright year 2023-01-02 17:36:27 +00:00
Richard Davey
c5c2d2b329 Fixing the separation of non-pushable circular bodies 2022-12-13 01:56:23 +00:00
Richard Davey
59fbcc5ca3 Updated copyright year 2022-02-28 14:29:51 +00:00
Richard Davey
1d66284a22 Removed debug logs and finished JSDocs 2020-09-28 15:25:43 +01:00
Richard Davey
4d484e2c0c Updated to handle face blocking and all possible checks 2020-09-28 13:07:32 +01:00
Richard Davey
09c2a2d622 Testing new separation 2020-09-28 08:07:19 +01:00
Richard Davey
bed716e382 X Separation working properly in all cases. Now to adjust Y. 2020-09-25 21:25:01 +01:00
Richard Davey
7630b8e28d Testing new Separation logic (Y done, X in progress) 2020-09-25 18:01:40 +01:00
Richard Davey
2bcf1f70be Testing new separation logic (incomplete atm) 2020-09-24 18:10:11 +01:00
samme
1c2e15ac98 Update _dx and _dy during friction movement 2020-07-07 15:44:56 -07:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
bf741e962c Restored Arcade Physics v1 and merged in all the core changes 2019-05-03 17:28:06 +01:00
Richard Davey
5589374e71 Removed debugging 2019-03-28 23:32:24 +00:00
Richard Davey
d942d28a81 Swap to use canMove and also new moveX/Y methods 2019-03-26 13:07:04 +00:00
Richard Davey
c8ec524068 Debug tests 2019-03-25 17:25:17 +00:00
Richard Davey
21df050e88 Works using ColInfo object now 2019-03-25 12:55:52 +00:00
Richard Davey
94bebab24d Silence logs for now 2019-03-24 23:31:11 +00:00
Richard Davey
427019ab53 Tidied it all up. Refactored down into smaller function. 2019-03-22 19:08:08 +00:00
Richard Davey
026c2049c0 Commented out a few logs 2019-03-22 02:29:34 +00:00
Richard Davey
9ac70e32b0 Now using CollisionInfo (and more debugging) 2019-03-21 17:25:01 +00:00
Richard Davey
0005cf590e Resolved bounds sleep issue
Now to create collision info objects for sleep settling.
2019-03-21 11:31:05 +00:00
Richard Davey
6a145049b1 Testing issue with sticky bodies 2019-03-21 01:02:38 +00:00
Richard Davey
1383aba08e Hide some logs 2019-03-20 17:14:31 +00:00
Richard Davey
792f458e32 Better "is moving" handling 2019-03-20 15:00:17 +00:00
Richard Davey
ec1b765833 Logging to figure out sleeping in the air 2019-03-20 10:41:06 +00:00
Richard Davey
290ef210f4 Doh, sqrt returns positive. Math.abs our velocities 2019-03-20 10:20:02 +00:00
Richard Davey
022ce80333 Fixed 'moves' assignment and added min velocity support 2019-03-20 04:07:58 +00:00
Richard Davey
1e5c2ea0fc Reworked blocker handling 2019-03-20 00:02:04 +00:00
Richard Davey
fcd7f25091 Preparing to swap for isBlocked checks 2019-03-19 23:21:59 +00:00
Richard Davey
8373936896 Removing need for sqrts when mass is the same 2019-03-19 00:27:26 +00:00
Richard Davey
d59617a627 Never ending debugging ahoy. 2019-03-18 17:17:59 +00:00
Richard Davey
4e993ce296 Much better seperation code and testing block exchange 2019-03-18 14:12:40 +00:00
Richard Davey
1306ad2f4a Splitting up the process of checking and separating, merging results back into Body
Body now tracks previously blocked so it can test block status before update happens.
2019-03-18 08:08:46 +00:00
Richard Davey
01ddf26662 Optimizing code out 2019-03-15 19:22:51 +00:00
Richard Davey
1fc476d738 Wake-up sleeping bodies on impact 2019-03-15 13:31:40 +00:00
Richard Davey
e93c40ddb1 Set forcePosition flag 2019-03-15 12:54:25 +00:00
Richard Davey
a605ad8d0c Handle nonn intersects aborts 2019-03-14 14:16:15 +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
24921d653b Added body filtering back 2019-03-11 22:47:48 +00:00
Richard Davey
dea9a06dd2 Reworked the logic to reduce quantity of flags 2019-03-11 17:27:29 +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
70f6484716 Flag swizzles ahoy 2019-03-11 11:05:51 +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
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Richard Davey
a083318e02 Added lots of missing jsdocs 2018-10-19 17:45:05 +01:00
Richard Davey
4c4421c47f Docjam merge 2018-10-19 12:32:43 +01:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00