Commit graph

298 commits

Author SHA1 Message Date
Richard Davey
cb77405031 Better seek handling 2019-03-28 14:58:51 +00:00
Richard Davey
7a05c205b1 Docs fix 2019-03-27 15:51:55 +00:00
Richard Davey
cc1b96a309 The Body.setCollideWorldBounds method has two new optional arguments bounceX and bounceY which, if given, will set the World Bounce values for the body. 2019-03-27 11:53:34 +00:00
Richard Davey
2b4568cf05 Body no longer sleeps if rotating and fixed moving a rebounding object 2019-03-27 10:46:42 +00:00
Richard Davey
c819599304 Use of a Game Object bound to a body is now optional 2019-03-27 00:20:49 +00:00
Richard Davey
811ed0e340 Dynamic and Static both now extend the Base Body. 2019-03-26 16:51:15 +00:00
Richard Davey
5bb2161d49 Fixed issue with non zero origins 2019-03-26 15:29:58 +00:00
Richard Davey
ab2f489c5a Renamed ambiguous movingX/Y, also broke out moveX to checkX and tidied up more 2019-03-26 13:07:57 +00:00
Richard Davey
9b65f1bcc6 Moved sleep checks around 2019-03-26 00:05:09 +00:00
Richard Davey
c58526fc74 Tidying up and resolving fractional comparisons 2019-03-25 17:25:39 +00:00
Richard Davey
3e499831cc Added functions for left / right checks 2019-03-25 12:55:31 +00:00
Richard Davey
1f07eaa79f Testing rideable bodies 2019-03-24 23:30:38 +00:00
Richard Davey
de08c9b0db Removed lots of un-used vars and added 'rideable' support 2019-03-22 19:07:06 +00:00
Richard Davey
b48247dada Body now wakes from direct velocity property modification 2019-03-22 15:01:47 +00:00
Richard Davey
ad9a0fad00 Fixed body waking situations 2019-03-22 14:48:00 +00:00
Richard Davey
cf504ac9c2 Body.setVelocity was cause the speed property to be set to NaN if you didn't provide a y argument. 2019-03-22 13:16:37 +00:00
Richard Davey
bef0b163a2 Clear snapTo 2019-03-22 12:50:28 +00:00
Richard Davey
4d4c5353ec Added World positionIterations property to help settle busy scenes 2019-03-22 12:18:34 +00:00
Richard Davey
7c5f6adfe8 Don't apply the force until postUpdate - resolves all issues with body spacing :) 2019-03-22 11:34:23 +00:00
Richard Davey
963ed11cb4 Fixed getMove flow 2019-03-22 02:39:10 +00:00
Richard Davey
06acf492bc Refactored getMoveY 2019-03-22 02:29:48 +00:00
Richard Davey
ec67d02b21 Blockers is now a face array and added hardBlocked support 2019-03-22 01:17:32 +00:00
Richard Davey
19bfe38d04 Resolved issue with bounds penetration (finally) 2019-03-21 23:21:02 +00:00
Richard Davey
9cabcd5d73 Tidying up 2019-03-21 17:24:34 +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
1518f49c23 Finally traced down the culprit. Now to resolve. 2019-03-20 17:14:44 +00:00
Richard Davey
0f59b326f6 Sleeping can now force a position 2019-03-20 14:59:53 +00:00
Richard Davey
1c81425771 Add forceY arguments 2019-03-20 10:40:32 +00:00
Richard Davey
bf25e424f0 Added support for minVelocity and fixed zero gravity rebound issue 2019-03-20 04:06:53 +00:00
Richard Davey
81e2851b37 Moved sleeping to new function and made stronger 2019-03-20 01:28:00 +00:00
Richard Davey
5dcd844701 Added world blocked debug color 2019-03-20 00:08:23 +00:00
Richard Davey
87e9f8e62d Don't reforce a forced position 2019-03-20 00:02:16 +00:00
Richard Davey
68c8bd3af2 Removed logs array and tidying up the flow 2019-03-19 23:21:48 +00:00
Richard Davey
d59617a627 Never ending debugging ahoy. 2019-03-18 17:17:59 +00:00
Richard Davey
5485c07b32 Fixed world gravity rebound 2019-03-18 14:55:54 +00:00
Richard Davey
df0c76569f Added world rebounds handler 2019-03-18 14:12:52 +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
2e63be9dd8 Added setWorldBlocked methods 2019-03-15 19:22:32 +00:00
Richard Davey
3e967ab300 Move sleep iterations to property and add wake method 2019-03-15 13:31:57 +00:00
Richard Davey
bdde075643 Implemented sleeping and much better debug drawing 2019-03-15 12:53:59 +00:00
Richard Davey
b635458ebb More resting tests 2019-03-14 17:20:47 +00:00
Richard Davey
54612b55fb Adding flip flop test 2019-03-14 14:52:07 +00:00
Richard Davey
07eea60143 Removed wasBlocked and tidied up 2019-03-14 14:16:25 +00:00
Richard Davey
dc31e39e01 Pushing to carry on debugging at home 2019-03-13 17: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
b228e23dfd Added blocked debug 2019-03-11 17:28:43 +00:00
Richard Davey
59859e93a7 Reset velocity on world bounds and blocked by setting 2019-03-11 12:26:58 +00:00
Richard Davey
932f70cea2 Removed logging and handled bounds collision 2019-03-11 11:05:42 +00:00