Commit graph

158 commits

Author SHA1 Message Date
Richard Davey
5e69f0e51f You can now optionally set a gameobject as being inactive and invisible when disabling a body 2017-12-03 17:12:43 +00:00
Richard Davey
e53fa0e716 Added Body.Enable component 2017-12-03 11:06:21 +00:00
Richard Davey
b2ca8e17dd Fixed Composite removal 2017-12-02 04:05:27 +00:00
Richard Davey
dd3db88960 preDestroy now handled in GameObject.destroy 2017-12-02 04:05:13 +00:00
Richard Davey
44bb628381 The Pairs come out of objects 2017-12-02 04:04:55 +00:00
Richard Davey
4023880efd Added World.remove 2017-12-02 04:04:30 +00:00
Richard Davey
23993bb318 Added setBoundsCollision method and World.remove to kill a body 2017-12-02 04:04:15 +00:00
Richard Davey
3aa609ddf6 Physics Groups will now call refresh automatically for you after a config creation 2017-12-02 04:03:57 +00:00
Richard Davey
11d89cdb1f Added default value 2017-12-02 04:03:31 +00:00
Richard Davey
3a0c276810 preDestroy added and event fix. 2017-12-01 18:19:25 +00:00
Richard Davey
309cf610bb Physics Manager now calls shutdown and destroy.
Matter World properly clears out the world and its Engine on shutdown. Also fixed incorrect localWorld.remove calls (fix #3110)
2017-11-29 23:36:35 +00:00
Richard Davey
a86b68e361 Removed un-needed WorldToCamera, implemented GetWorldPoint across the board 2017-11-29 22:23:58 +00:00
Richard Davey
3129950d34 Updated call 2017-11-29 02:25:14 +00:00
Richard Davey
e194b95654 PointerConstraint now takes the scene camera it should use as a config option. 2017-11-28 11:16:23 +00:00
Richard Davey
1380af61a1 Added render visible flag. 2017-11-27 17:01:27 +00:00
Richard Davey
6da5409688 Added in all of the Composites helpers. 2017-11-27 16:29:43 +00:00
Richard Davey
f24b808ee5 Added setGravity defaults and fixed nextGroup method. 2017-11-27 16:29:33 +00:00
Richard Davey
ac9f5c4360 Added quick support for setCircle, setRectangle, setPolygon and setTrapezoid. 2017-11-27 14:48:09 +00:00
Richard Davey
15a2280813 Added basic Graphics debug, fromPath, isPaused and postUpdate. 2017-11-27 03:45:46 +00:00
Richard Davey
af9f7380e8 Added property 2017-11-27 03:45:12 +00:00
Richard Davey
f8fe81dfa1 New setBody component for setting and change body shape 2017-11-27 03:45:03 +00:00
Richard Davey
ff316be41e setFriction can now set all 3 values. 2017-11-27 03:44:31 +00:00
Richard Davey
cd629248d0 fix inertia change in Body.setMass 2017-11-26 23:25:49 +00:00
Richard Davey
bccad674b7 fix point argument of Body.scale 2017-11-26 23:24:16 +00:00
Richard Davey
5862949a4c fix centroid for static compound bodies 2017-11-26 23:19:45 +00:00
Richard Davey
dc7289e539 Fix Vertices.chamfer radius argument 2017-11-26 23:17:12 +00:00
Richard Davey
3ee14a88a6 Removed referene to Mouse class (no longer used) 2017-11-26 15:31:48 +00:00
Richard Davey
b85b341bfd Removed references to the Render class (only needed in debug and saved loads of space in the build file) 2017-11-26 15:31:34 +00:00
Richard Davey
d4fd2082f2 Removed un-used RenderPixi class 2017-11-26 15:31:04 +00:00
Richard Davey
d1fb8319b2 Removed old module entry point and added license 2017-11-26 15:30:52 +00:00
Richard Davey
f6a5463131 Removed Mouse class from matter.js as it's not used. 2017-11-26 15:30:26 +00:00
Richard Davey
f4cdd3c1b4 Optimization of Body's hidden class 2017-11-26 15:02:42 +00:00
Richard Davey
dfa3cc243a Optimization of Resolver.solvePosition method 2017-11-26 14:50:40 +00:00
Richard Davey
81b3656d1e Added Pair.update optimisations and removed the Contact class. 2017-11-26 14:37:17 +00:00
Richard Davey
ce28eaaad8 Added the Attractors and Wrap matter plugins. Fixed the Plugin register. Added silence option to stop plugin logging to the console. 2017-11-24 13:42:32 +00:00
Richard Davey
ffeff9d2f7 Added confirmedActive speed optimisation to matter.js and removed Common.indexOf 2017-11-24 00:37:09 +00:00
Richard Davey
016fda7660 Added imageStack Factory function. 2017-11-23 16:55:28 +00:00
Richard Davey
4723ef0caa Removed use of Common.indexOf after some horrible perf results. 2017-11-23 16:55:17 +00:00
Richard Davey
1ae7237f73 You can now optionally set if the objects are added to the physics world. 2017-11-23 16:54:55 +00:00
Richard Davey
7c29eab78c Body has new property: ignorePointer, which pointer checks. 2017-11-23 14:59:26 +00:00
Richard Davey
04df05cf73 World thickness now 128. 2017-11-23 14:59:15 +00:00
Richard Davey
08047bbdbb Added the PointerConstraint and Factory methods (aka mouseSpring) 2017-11-23 01:45:58 +00:00
Richard Davey
dbad873236 Added support for beforeUpdate and afterUpdate world events 2017-11-23 01:45:38 +00:00
Richard Davey
b0f2b833c8 Removed two more un-needed files 2017-11-23 01:45:19 +00:00
Richard Davey
8afa631a38 Added Ignore Gravity component 2017-11-22 17:11:09 +00:00
Richard Davey
a69765d962 Removed un-needed file 2017-11-22 16:24:16 +00:00
Richard Davey
1067432174 Modified Matter source to add ignoreGravity option as it can't be monkey-patched in 2017-11-22 16:24:09 +00:00
Richard Davey
8add2510ac Added Factory constraint functions 2017-11-22 16:23:47 +00:00
Richard Davey
f62409d83b Matter objects now have a reference to the world in which they were added 2017-11-22 14:13:25 +00:00
Richard Davey
f88732cbb7 Added Sleep Start and Sleep End events 2017-11-22 14:13:10 +00:00