Commit graph

13910 commits

Author SHA1 Message Date
Richard Davey
8b1cc40a23 SetBody can now use JSON data natively 2020-01-10 16:24:40 +00:00
Richard Davey
8e7c3103d8 Moved the fromJSON code to its own external parser 2020-01-10 16:24:30 +00:00
Richard Davey
f3bbf4f88d Update CHANGELOG.md 2020-01-10 15:34:44 +00:00
Richard Davey
88cd83a508 Fixed bug in PhysicsEditorParser where it would allow non-clockwise vertices through 2020-01-10 15:32:03 +00:00
Richard Davey
1d827c911f 0.2 is just too dim 2020-01-10 14:53:39 +00:00
Richard Davey
ea2337c091 Only if parts = 1 2020-01-10 14:53:27 +00:00
Richard Davey
282a4df811 Update Factory.js 2020-01-10 14:53:17 +00:00
Richard Davey
415de5b7b8 Update CHANGELOG.md 2020-01-10 11:20:57 +00:00
Richard Davey
e07513b707 Small restructure 2020-01-10 11:20:53 +00:00
Richard Davey
4e53d74581 Removed un-used properties 2020-01-10 11:20:41 +00:00
Richard Davey
2a5ee807ac New name 2020-01-10 11:20:30 +00:00
Richard Davey
e27914792e More robust checks 2020-01-10 10:52:54 +00:00
Richard Davey
0d66c98ff0 Added JSDocs for fromPhysicsEditor method and tidied things up a bit. 2020-01-10 08:56:49 +00:00
Richard Davey
ea338cadaa Fixed JSDocs and origin assignment. 2020-01-10 08:56:31 +00:00
Richard Davey
5c9c00bfdb Removed un-used code. 2020-01-10 08:56:17 +00:00
Richard Davey
887227a313 Added centerOffset back and fixed calculations 2020-01-10 08:55:56 +00:00
Richard Davey
6c947c9677 Updated PhysicsEditor Parser
Now allows you to specify options object to override the loaded config. Also removed un-used parameters and fixed JSDocs. Finally, using Common.clone to avoid mutating the loaded JSON.
2020-01-10 08:55:31 +00:00
Richard Davey
d63001d719 Testing offsets 2020-01-09 17:55:03 +00:00
Richard Davey
590256fe92 Added fromPhysicsEditor method 2020-01-09 17:54:38 +00:00
Richard Davey
d3aaff82e1 Finished JSDocs 2020-01-09 16:38:33 +00:00
Richard Davey
acb1ecce6c Update CHANGELOG.md 2020-01-09 13:20:32 +00:00
Richard Davey
a8f3c3b9c0 New BodyBounds class for getting body bounds based coordinates 2020-01-09 13:18:44 +00:00
Richard Davey
fceef3ddf0 Added BodyBounds class 2020-01-09 13:18:24 +00:00
Richard Davey
d031d91f1e Added bodyBounds class, finished alignBody and fixed typedefs 2020-01-09 13:18:13 +00:00
Richard Davey
9aeead5cc2 New Body typedef 2020-01-09 13:17:56 +00:00
Richard Davey
4de6f17a38 Formatted docs 2020-01-09 13:17:43 +00:00
Richard Davey
cfa6eeb6e2 Finished alignBody method 2020-01-09 00:43:46 +00:00
Richard Davey
4d0618232b Only render compound bounds 2020-01-09 00:43:38 +00:00
Richard Davey
312f4dab10 Start of alignBody method 2020-01-08 17:44:02 +00:00
Richard Davey
83c5bc41fa Update CHANGELOG.md 2020-01-08 14:41:28 +00:00
Richard Davey
d6e0ba9b29 MatterPhysics.getConstraintLength is a new method that will return the length of the given constraint, as this is something you cannot get from the constraint properties directly. 2020-01-08 14:41:24 +00:00
Richard Davey
b8797de87a Update CHANGELOG.md 2020-01-08 12:15:32 +00:00
Richard Davey
ae8bfbc013 Added missing JSDocs 2020-01-08 12:15:29 +00:00
Richard Davey
2859eb6a68 Added new Set Body Config 2020-01-08 12:15:17 +00:00
Richard Davey
28a7ccab57 Update CHANGELOG.md 2020-01-08 11:55:38 +00:00
Richard Davey
4e8c676895 Full JSDocs coverage! 2020-01-08 11:55:35 +00:00
Richard Davey
49556021ef New constraint type defs 2020-01-08 11:55:24 +00:00
Richard Davey
0a376d6c6e Update CHANGELOG.md 2020-01-08 11:15:40 +00:00
Richard Davey
ac92fbe1b0 Lots of JSDoc updates. Also removed velocity and force methods as they don't belong in the Factory. 2020-01-08 11:15:30 +00:00
Richard Davey
86edd99248 inverseMass is a required property! Also removed duplicate jsdoc 2020-01-08 11:15:02 +00:00
Richard Davey
2ac0562fb6 Updated JSDocs 2020-01-08 11:14:40 +00:00
Richard Davey
6a8bce9250 Added essential new type defs 2020-01-08 11:14:26 +00:00
Richard Davey
0a6e696295 Update CHANGELOG.md 2020-01-08 01:50:54 +00:00
Richard Davey
b908ebdda2 Added fromSVG method 2020-01-08 01:50:51 +00:00
Richard Davey
08b30a2ec3 Update CHANGELOG.md 2020-01-07 23:57:11 +00:00
Richard Davey
e861ecf5a0 Emit the current and previous values 2020-01-07 23:57:08 +00:00
Richard Davey
1a69cd9e0f TweenData now stores its previous ease value. 2020-01-07 23:56:39 +00:00
Richard Davey
736fd6dfb9 Added TWEEN_UPDATE current and previous values 2020-01-07 23:56:15 +00:00
Richard Davey
279829b414 Added JSDocs 2020-01-07 17:54:47 +00:00
Richard Davey
868d599832 Added JSDocs 2020-01-07 17:31:41 +00:00