Matter.js v0.9.0 Release Notes

Release Date: 2016-01-16 // over 8 years ago
  • ๐Ÿš€ release summary

    • ๐Ÿ‘Œ improved documentation
    • ๐Ÿ‘Œ improved performance
    • ๐Ÿ‘Œ improved stability
    • ๐Ÿ‘Œ improved accuracy
    • ๐Ÿ‘Œ improved friction
    • ๐Ÿ‘Œ improved sleeping
    • ๐Ÿ‘Œ improved constraints
    • ๐Ÿ‘Œ improved examples

    • โž• added concave body support

    • โž• added compound body support

    • โž• added collision filters

    • โž• added Matter.Body property setters

    • โž• added Matter.Sleeping events

    • โž• added Matter.Composite events

    • โž• added Matter.Composite transforms

    • โž• added Matter.MouseConstraint events

    • โž• added Matter.Render events

    • โž• added Matter.Runner

    • โž• added support for nodejs

    • โž• added support for high dpi rendering

    • โž• added multiple examples

    • โž• added automated tests

    • migrated from grunt to gulp

    • ๐Ÿ’ป migrated to browserify

    • migrated to pixi.js v3

    • ๐Ÿ›  fixed multiple issues (see commit log)

    ๐ŸŒฒ commit log

    • โž• Add Pixi DisplayObjectContainer to allow view bounds in webGL (97f0f8d)
    • โž• added beforeRender and afterRender events to Matter.Render (aa48322)
    • โž• added body sleepStart and sleepEnd events, closes #91 (bc26469), closes #91
    • โž• added Body.nextCategory (d249165)
    • โž• added Body.set (235b6c8)
    • โž• added Body.setMass, Body.setDensity, Body.setInertia (ca978fa)
    • โž• added Body.setPosition, Body.setAngle, Body.setVelocity, Body.setAngularVelocity (7ed28f7)
    • โž• added Body.setVertices and Vector.clone (b6dbb25)
    • โž• added building and contributing to readme (9a59e34)
    • โž• added collisionFilter support to MouseConstraint (cee8d55)
    • โž• added composite events (2841522)
    • โž• added composite events example to Demo.events (296d47e)
    • โž• added Composite.translate, Composite.rotate, Composite.scale (4c4962f)
    • โž• added compound support to Query.ray (10e5d0f)
    • โž• added constraint to Demo.compound (87fbf51)
    • โž• added CONTRIBUTING.md (7c936d5)
    • โž• added CONTRIBUTING.md (261c794)
    • โž• added Demo.compositeManipulation (4051823)
    • โž• added Demo.compound (b7bf5d6)
    • โž• added Demo.concave, added Bodies.fromVertices, added Vertices.isConvex, fixed compound properties (0b8efa5)
    • โž• added Demo.manipulation (0a453a2)
    • โž• added Demo.setManualControl (203252a)
    • โž• added Demo.slingshot (3043baa)
    • โž• added Demo.staticFriction (4491dfd)
    • โž• added Demo.svg, Demo.compoundStack, Demo.concave (17589bc)
    • โž• added Demo.terrain (3132d70)
    • โž• added docs (200fcbe)
    • โž• added docs for engine.timing.isFixed (e22ceeb)
    • โž• added drag events to MouseConstraint, closes #45 (c254c8d), closes #45
    • โž• added early out in Constraint.postSolveAll, pass body.velocity when updating bounds (8210dbe)
    • โž• added internal edge flagging to Bodies.fromVertices (ca75fde)
    • โž• added Matter.Svg.pathToPoints (7822ead)
    • โž• added Matter.version (e0a6de0)
    • โž• added Matter.World extends Matter.Composite to docs (b3921fb)
    • โž• added minimum area check to Bodies.fromVertices (bf11ee5)
    • โž• added missing dependency to Render.js (df5f16c)
    • โž• added mouse constraint collision mask example to demo (440e9d2)
    • โž• added Mouse.create warning for omitted element (af83e27)
    • โž• added MouseConstraint.create warning for omitted element (b6603ca)
    • โž• added node demo tests (71c1ae8)
    • โž• added options to Metrics.create (1b7e27d)
    • โž• added Query.point (98ea7c7)
    • โž• added release tasks (5479fbc)
    • โž• added Render.create warning for omitted element (0583cdb)
    • โž• added render.options.showMousePosition (e191d44)
    • โž• added Render.showInternalEdges, added rendering bounds + axes + positions for compounds, fixed rende (5ab2bf3)
    • โž• added Render.vertexNumbers, Render.bodyConvexHulls (9c139ed)
    • โž• added Runner.create and Runner.tick (5c69f2e)
    • โž• added source link to demo (1e756d3)
    • โž• added sprite offsets relative to centre of mass, closes #153 (3de9d00), closes #153
    • โž• added startdrag and enddrag events to Demo.events (7c75614)
    • โž• added support for compound bodies in MouseConstraint (d6829bf)
    • โž• added support for hidpi rendering (4746eb9)
    • โž• added support for multiple vertices input in Bodies.fromVertices (e8205f8)
    • โž• added support for sprite scale in RenderPixi, closes #54 (8dea166), closes #54
    • โž• added testDemo to grunt test (08c5648)
    • โž• added time scaling to Sleeping (0ae2d02)
    • โž• added Vector.create (b327a40)
    • ๐Ÿ‘ Allow for negative force to bring a body out of sleeping state. (d585e80)
    • appease jshint (89140ae)
    • appease jshint (18a2627)
    • ๐Ÿ”„ change browser tests to use JSON.stringify (75af920)
    • ๐Ÿ”„ change gravity scale to variable rather than a constant (a38b227)
    • ๐Ÿ”„ change main to edge build (9d0e82b)
    • ๐Ÿ”„ change travis to only lint rather than full test (until tests are finished and documented) (ce478cb)
    • ๐Ÿ”„ change world.bounds to Infinity, remove world bounds check from Engine, closes #67 (8b5192d), closes #67
    • ๐Ÿ”„ changed Body._initProperties to use Body.setVertices (2d04389)
    • ๐Ÿ”„ changed bower main to build/matter.js (7412335)
    • ๐Ÿ”„ changed certain Matter.Composite methods to private in docs (8aa148d)
    • ๐Ÿ”„ changed Common.log to use console.warn (c220f41)
    • ๐Ÿ”„ changed default minimum area in Bodies.fromVertices (998ab33)
    • ๐Ÿ”„ changed demo to use Matter.Runner and Matter.Render events (a1d4748)
    • ๐Ÿ”„ changed friction impulse limiting approach (de4784c)
    • ๐Ÿ”„ changed Grid.create to accept an options object (eedd1f2)
    • ๐Ÿ”„ changed jquery reference (matter-tools) to local copy (0849773)
    • ๐Ÿ”„ changed Math.random to Common.random and use a seeded RNG (0a46cb2)
    • ๐Ÿ”„ changed Mouse.create to return as a plain object (eaa9767)
    • ๐Ÿ”„ changed Render.bodyIds to show all parts (3ed8034)
    • ๐Ÿ”„ changed Sleeping constants to be public (module level) (7eadea9)
    • ๐Ÿ’… changed vertex number render fillstyle (bc88406)
    • ๐Ÿ”„ changed Vertices.create and Vertices.fromPath to create and return a new array rather than apply in- (e3e462e)
    • cleanup (5888ffc)
    • cleanup Svg.pathToPoints (8bf3278)
    • cleanup Svg.pathToVertices (7db3d28)
    • demo tweaks (d55c700)
    • demo tweaks (22445c7)
    • disabled angle indicators on some demos (74bc8ae)
    • don't calculate gravity force if there is no actual gravity (e54802c)
    • dont draw offscreen constraints. Set visible flag on offscreen sprites (e263ecb)
    • Ensure passed canvas abides by render options (0b51dd6)
    • ๐Ÿ”ฆ expose demo instance externally (a9122ed)
    • ๐Ÿ›  fix angle indicators for compound bodies (8031090)
    • ๐Ÿ›  fix bug in Composites.stack when skipping bodies (b34669e)
    • ๐Ÿ›  fix bug when using timing.isFixed, closes #44 (0933620), closes #44
    • ๐Ÿ›  fix concat dependency (84a22ba)
    • ๐Ÿ›  fix demo for tests (5e6b22b)
    • ๐Ÿ›  fix Demo.reset to fully reset ids (500d566)
    • ๐Ÿ›  fix Demo.stress stability (d0fdd29)
    • ๐Ÿ›  Fix for travis (05f1c46)
    • ๐Ÿ›  fix grunt for travis (d405910)
    • ๐Ÿ›  fix grunt for travis (f55d806)
    • ๐Ÿ›  fix gulp issues (4173e70)
    • ๐Ÿ›  fix gulp issues (3bd556d)
    • ๐Ÿ›  fix handling of engine.render (c46e915)
    • ๐Ÿ›  fix issue in Render.inspector on Chrome (86fcfcd)
    • ๐Ÿ›  fix issue of undefined body.parts in constructor (9d3755a)
    • ๐Ÿ›  fix issue when Bodies.trapezoid slope === 1, closes #138 (449774c), closes #138
    • ๐Ÿ›  fix issue with mouse when changing renderers, closes #96 (796faeb), closes #96
    • ๐Ÿ›  fix issue with Render.debug when no timing passed, closes #171 and #176 (087fab2), closes #171 #176
    • ๐Ÿ›  fix jshint (b0f72ab)
    • ๐Ÿ›  fix lint issue (9a599f1)
    • ๐Ÿ›  fix Matter.Demo for node (2de1161)
    • ๐Ÿ›  fix Matter.Demo for node (06eea3e)
    • ๐Ÿ›  fix Matter.Runner for node (ad55b85)
    • ๐Ÿ›  fix mobile demo, remove dev.html, fix debug info rendering (9d5c27a)
    • ๐Ÿ›  fix orientation event bug in DemoMobile (f770a7c)
    • ๐Ÿ›  fix pair properties for compounds (b8f3784)
    • ๐Ÿ›  fix runner for tests, limit precision of refs (352bfd6)
    • ๐Ÿ›  fix standalone option (de16529)
    • ๐Ÿ›  fix support for nodejs (b669ea0)
    • ๐Ÿ›  fix tests (eccf0a7)
    • ๐Ÿ›  fix travis (3ce6c3a)
    • ๐Ÿ›  fix travis issue (131ed5e)
    • ๐Ÿ›  fix undefined variables, added jshint checks, closes #102 (536e55f), closes #102
    • ๐Ÿ›  fixed Body.rotate (c5212e1)
    • ๐Ÿ›  fixed Body.setVertices (73ded98)
    • ๐Ÿ›  fixed bug in constraints for compounds (13fcb4b)
    • ๐Ÿ›  fixed bug in Demo.reset that was creating multiple MouseConstraint (8204d97)
    • ๐Ÿ›  fixed build tasks (69ff33f)
    • ๐Ÿ›  fixed build tasks, closes #161 (d1b8705), closes #161
    • ๐Ÿ›  fixed chaining for some Matter.Vertices methods (8746185)
    • ๐Ÿ›  fixed collision detection issue, closes #12 (3e48825), closes #12
    • ๐Ÿ›  fixed collision incident and reference body mapping (757fffa)
    • ๐Ÿ›  fixed collision rendering (bc9a051)
    • ๐Ÿ›  fixed Common.now, closes #55 (8555c0c), closes #55
    • ๐Ÿ›  fixed compound body stability, improved position resolver (e01dd22)
    • ๐Ÿ›  fixed critical inertia calculation issue, a potential breaking change, so Body._inertiaScale added t (9a55b0c)
    • ๐Ÿ›  fixed Example.timescale (19656cd)
    • ๐Ÿ›  fixed friction in Demo.manipulation (95ae911)
    • ๐Ÿ›  fixed gulp shell task args (c2b0f30)
    • ๐Ÿ›  fixed incorrect bounds issue when passing angle in Body.create (810bd26)
    • ๐Ÿ›  fixed issue with Body.applyForce torque, closes #64 (3f9364c), closes #64
    • ๐Ÿ›  fixed issue with docs (3a16f90)
    • ๐Ÿ›  fixed issue with MouseConstraint.create, closes #185 (dff0e30), closes #185
    • ๐Ÿ›  fixed issues with friction stability (1db98a3)
    • ๐Ÿ›  Fixed missed variable declaration. (a940d96)
    • ๐Ÿ›  fixed options pass through on Bodies.fromVertices (eb29367)
    • ๐Ÿ›  fixed Query.ray, Number.MIN_VALUE seems to cause SAT.collides to fail (ccbb98b)
    • ๐Ÿ›  fixed RenderPixi for compound bodies (6679b9c)
    • ๐Ÿ›  fixed SAT overlap calculation for containment case (685f2bd)
    • ๐Ÿ›  fixed scaling on RenderPixi view bounds (c1964e2)
    • ๐Ÿ›  fixed support finding logic (bc7dfc7)
    • ๐Ÿ›  fixed Vertices.fromPath when parsing scientific notation (dae684d)
    • ๐Ÿ›  fixes for compound bodies (87f9065)
    • ๐Ÿ”€ formatting merge (d4cbdbb)
    • further work on compound implementation (d2f79b4)
    • hide axis indicator on compound bodies (6a26696)
    • ignoring .idea (066a416)
    • โœ… implemented automated browser tests (a88b3ba)
    • implemented compound bodies, added Body.setParts (f554d6c)
    • implemented static compound bodies (90adf14)
    • implemented temporary vector pool (7a477f2)
    • ๐Ÿ‘Œ improve Composite.car (5ff2182)
    • ๐Ÿ‘Œ improved collision detection for compounds (84d9f59)
    • ๐Ÿ‘Œ improved Demo.manipulation (e186ccd)
    • ๐Ÿ‘Œ improved docs (2317f02)
    • ๐Ÿ‘Œ improved docs (2e6afd4)
    • ๐Ÿ‘Œ improved examples (6e1f8e9)
    • ๐Ÿ‘Œ improved friction, added body.frictionStatic (937c7bf)
    • ๐Ÿ‘Œ improved traction for Composites.car (95eddb0)
    • increased tollerance on internal edge finding (40905e8)
    • ๐ŸŽ‰ initial work on browser tests (6a88256)
    • ๐ŸŽ‰ initial work on compound bodies (243fce4)
    • ๐Ÿ‘‰ Make background:'transparent' work like canvas renderer (f9123f9)
    • ๐Ÿ”€ Merge branch 'browser-tests' (a6b82c1)
    • ๐Ÿ”€ Merge branch 'collision-filters' of https://github.com/GustavCarlson/matter-js into GustavCarlson-co (3a32bda)
    • ๐Ÿ”€ Merge branch 'GustavCarlson-collision-filters' (a58fe2a)
    • ๐Ÿ”€ Merge branch 'master' into runner-improve (a48d219)
    • ๐Ÿ”€ Merge branch 'master' into topic/addBounds (a461fc7)
    • ๐Ÿ”€ Merge branch 'master' of github.com:liabru/matter-js (4067108)
    • ๐Ÿ”€ Merge branch 'master' of https://github.com/rfoligno/matter-js into rfoligno-master (41b4b7f)
    • ๐Ÿ”€ Merge branch 'master' of https://github.com/schahriar/matter-js into schahriar-master (2510cdf)
    • ๐Ÿ”€ Merge branch 'no-gravity-optim' of https://github.com/BlackDice/matter-js into BlackDice-no-gravity- (1b8574a)
    • ๐Ÿ”€ Merge branch 'node-tests' into browserify (6e0e7e4)
    • ๐Ÿ”€ Merge branch 'pr/60' (42dc72d)
    • ๐Ÿ”€ Merge branch 'pr/95' (eed9167)
    • ๐Ÿ”€ Merge branch 'runner-improve' into browserify (9e3438f)
    • ๐Ÿ”€ Merge pull request #30 from mrspeaker/master (e95e328)
    • ๐Ÿ”€ Merge pull request #31 from mrspeaker/topic/addBounds (6652bb4)
    • Merge pull request #51 from tumult/pair_refreshes_from_body_values (7c1efb6)
    • ๐Ÿ”€ Merge remote-tracking branch 'origin/pr/33' (c6a9414)
    • merge tumult:old_ie_fixes + tweaks (6e1ab9a)
    • ๐Ÿ‘• migrated from grunt to gulp, jshint to eslint (19bb655)
    • 0๏ธโƒฃ Missing argument whose default is 1. (61855ab)
    • ๐Ÿ’… More fine-grained collision filtering in the style of Box2D (dd4fc65)
    • ๐Ÿšš move /tests to /test (ad403ae)
    • move Demo.* to Example.* (b722012)
    • ๐Ÿ— move license in build (9ba8a2a)
    • ๐Ÿšš move require statements below module export (99c3bb3)
    • โšก๏ธ moved collision events into Engine.update, changed collisionStart to trigger before collisions resol (69b1d05)
    • ๐Ÿšš moved Engine.run to Matter.Runner (6911395)
    • ๐Ÿšš moved engine.timing properties, tick events and Engine.render into Matter.Runner module (dcdc43d)
    • pass width and height options to Pixi webGL renderer (a9278fc)
    • publish to npm (a12fbcb)
    • ๐Ÿ”จ refactor Bodies.fromVertices (4a2c6e7)
    • ๐Ÿ”จ refactor Demo.create (c0b24da)
    • ๐Ÿ”จ refactor Demo.init (fb76605)
    • โœ‚ remove constraint torque clamp (6f89250)
    • โœ‚ removed Body.resetForcesAll, removed Body.applyGravityAll, removed Body.updateAll (9aa0945)
    • โœ‚ removed collision.supportCorrected instead using bodyB.position, added render.options.showSeparation (2b6a8d3)
    • โœ‚ removed complexity check in Bodies.fromVertices, enforce clockwise sort (2d1ef0d)
    • โœ‚ removed Detector.bruteForce (e04de5f)
    • โœ‚ removed engine.broadphase.current, removed engine.broadphase.instance, changed engine.broadphase to (6dd0c05)
    • โœ‚ removed engine.input, removed Engine mouse events, added MouseConstraint mouse events (fb5d899)
    • โœ‚ removed line width change from Body.setStatic (04955bb)
    • โœ‚ removed Matter.Metrics from release builds (now dev only) (968bba2)
    • โœ‚ removed old build (a068bec)
    • โœ‚ removed redundant property (14392b4)
    • โœ‚ removed Render.clear (redundant) (0a15d7d)
    • โœ‚ removed Render.setBackground (now use render.options) (01bc813)
    • โœ‚ removed unused vars from examples (0bff037)
    • โœ‚ removed version number from edge build name (e6b998e)
    • render normals pointing out of static bodies (d082b3a)
    • skip presolve when impulse 0 (296059c)
    • skip unnecessary loops in Composites.mesh, closes #85 (0a73a64), closes #85
    • โšก๏ธ Some fixes in pixi.js v3 update (96735dd)
    • Spellchecking (940976a)
    • Spellchecking (c2e0c23)
    • Spellchecking (cd5d401)
    • Spellchecking (611a429)
    • Spellchecking (723ddcf)
    • Spellchecking (65d5d93)
    • Spellchecking (3127654)
    • ๐Ÿ‘‰ tweak jshint (71df1b9)
    • ๐Ÿ‘‰ tweaks to collision filtering (5060c76)
    • ๐Ÿ‘‰ tweaks to Matter.Runner (ce474da)
    • โšก๏ธ Update JSDoc (25ab2a3)
    • โšก๏ธ Update JSDoc (18e0642)
    • โšก๏ธ Update JSDoc (71ef6c2)
    • โšก๏ธ Update JSDoc (10a46b7)
    • โšก๏ธ Update JSDoc (5b87f47)
    • โšก๏ธ Update JSDoc (d17eb6c)
    • โšก๏ธ Update JSDoc (aa3eabc)
    • โšก๏ธ update node version for travis (e698b6b)
    • โšก๏ธ updated browser test refs (1810f93)
    • โšก๏ธ updated browser test refs (ae32d63)
    • โšก๏ธ updated browser test refs (31fb748)
    • โšก๏ธ updated contributing notes (8b89e87)
    • โšก๏ธ updated docs for collisionFilter (9f10f88)
    • โšก๏ธ updated edge build (2fa1570)
    • โšก๏ธ updated edge build (02ab198)
    • โšก๏ธ updated edge build (37a86cd)
    • โšก๏ธ updated edge build (cd00353)
    • โšก๏ธ updated edge build (37ccc84)
    • โšก๏ธ updated edge build (bf3f986)
    • โšก๏ธ updated edge build (16733ad)
    • โšก๏ธ updated edge build (2f2d416)
    • โšก๏ธ updated edge build (5770013)
    • โšก๏ธ updated edge build (43fd2e3)
    • โšก๏ธ updated edge build (fbb7c1a)
    • โšก๏ธ updated edge build (d6cbd07)
    • โšก๏ธ updated edge build (9561d5d)
    • โšก๏ธ updated edge build (a80fbc1)
    • โšก๏ธ updated edge build (5b2b060)
    • โšก๏ธ updated edge build (d22b1b4)
    • โšก๏ธ updated edge build (2ab20b0)
    • โšก๏ธ updated edge build (f2635ab)
    • โšก๏ธ updated matter-tools (c969767)
    • โšก๏ธ updated matter-tools (4ecad0f)
    • โšก๏ธ updated node test refs (b1e6a45)
    • โšก๏ธ Updated pixi.js to v3 (419d2ad)
    • โšก๏ธ updated readme (137580c)
    • โšก๏ธ updated readme (f4f3bf7)
    • โšก๏ธ updated readme (d2dcc77)
    • โšก๏ธ updated readme (2806fd3)
    • โšก๏ธ updated readme (3e5abab)
    • โšก๏ธ updated readme (8f2f8ee)
    • โšก๏ธ updated readme (6cd00b1)
    • โšก๏ธ updated test refs (b79ece2)
    • โšก๏ธ updated test refs (1a55259)
    • โšก๏ธ updated test refs (110aea8)
    • โšก๏ธ updated test refs (729e2bf)
    • โฌ†๏ธ upgraded pixi.js to v3.0.6 (d03145e)
    • 0๏ธโƒฃ use actual canvas size for default render bounds (c3129b8)
    • ๐Ÿ’ป use browserify (00251e5)
    • ๐Ÿ— use build folder for demo (fa47d5c)
    • โœ… use different port for test server, fix test precision limiter (c1f71b9)
    • ๐Ÿ‘‰ Use own Common.indexOf method for IE 6-8 compatibility (b91af36)
    • โšก๏ธ When updating pairs use current values from bodies as they may have changed (f0e7491)