Matter.js v0.7.0-alpha Release Notes

Release Date: 2014-04-01 // about 10 years ago
  • ๐Ÿš€ Release Highlights

    • โž• added six new demos
      • all demos are now mobile friendly
    • โž• added new event system
      • engine, mouse and collision events
    • โž• added sprite texture rendering support
    • โž• added WebGL renderer (pixi.js)
    • ๐Ÿ‘Œ improved Composite (and World)
      • batch adding
      • type agnostic adding
      • body removal
    • ๐ŸŽ major performance increases all round
      • collision detection caching
      • batched rendering
      • improved pair management
      • memory leaks fixed
    • stability improvements
      • bodies rest better due to collision caching
      • bodies sleep better
      • constraints are much less volatile
    • ๐Ÿ›  fixes for a number of issues (see fixes)

    โž• Added

    • โž• added demos
      • sprites
      • events
      • catapult
      • cloth
      • soft body
      • bridge
    • โž• added collision caching and reuse for improved performance
      • added metrics for collision reuse
    • โž• added Events module (Issue #8)
      • engine events
      • mouse events
      • collision events
    • โž• added composite functions, including
      • batch adding (Composite.add / World.add)
      • type agnostic adding (Composite.add / World.add)
      • body removal (Composite.remove / World.remove)
    • โž• added factory functions
      • constraint meshing (Composites.mesh)
      • soft body factory (Composites.softBody)
    • โž• added RenderPixi, a pixi.js WebGL renderer
      • added Gui option to switch renderer
      • added Mouse.setElement
    • โž• added render.visible flag to Body and Constraint (Issue #10)
    • โž• added id to Constraint and Composite
    • โž• added type names to Body, Constraint, Composite
    • โž• added Common functions
      • Common.colorToNumber
      • Common.log
      • Common.clone
    • โž• added jsdoc annotations
    • โž• added travis-ci integration
    • โž• added yuidoc build tasks
    • โž• added multiple build modes to Gruntfile (dev, release, edge)
    • โž• added repository to package.json, so Browserify may be used
    • โž• added CHANGELOG.md

    ๐Ÿ”„ Changed

    • ๐Ÿ“‡ renamed module Manager to Pairs
    • ๐Ÿ”„ changed Composite to be tree-based
    • ๐Ÿ”„ changed timestep to be smoothed over 1s for stability
    • ๐Ÿ”„ changed default constraintIterations to 2 for stability
    • ๐Ÿ”„ changed demo to use the new composite functions
    • ๐Ÿ”„ changed right click to now remove bodies in the demos
    • ๐Ÿ”„ changed Common.now to use high-resolution timing
    • ๐Ÿ”„ changed MouseConstraint to reference a single constraint rather than a list
    • ๐Ÿ”„ changed Constraint to now use a render property
    • ๐Ÿ”„ changed Metrics to only track FPS by default, use the extended flag for full metrics

    โœ‚ Removed

    • โœ‚ removed the default in MouseConstraint, you must now instantiate one manually

    ๐Ÿ›  Fixed

    • ๐Ÿ›  fixed a memory leak in Grid
    • ๐Ÿ›  fixed a memory leak in Manager
    • ๐Ÿ›  fixed debug text now uses Metrics correctly
    • ๐Ÿ›  fixed issues regarding passing custom Render modules (Issue #7)
    • ๐Ÿ›  fixed issue in Common.extend with null properties
    • ๐Ÿ›  fixed issue with sleeping, now ignores inactive pairs
    • ๐Ÿ›  fixed issues with Body.applyForce (Issue #7)