Matter.js v0.8.0-alpha Release Notes
Release Date: 2014-05-05 // about 10 years ago-
๐ Release Highlights
- โ added Views demo
- โ added Time Scaling demo
- โ added Rounded Corners (Chamfering) demo
- โ added Raycasting demo
- โ added Query module, including raycasting
- โ added 3 useful new Composite methods
- โ added support for mouse wheel, mouse scaling and offsets
- โ added Body.scale for scaling bodies on the fly
- โ added Body.timeScale for slowing down bodies per-body
- โ added Body.setStatic for correctly setting static
- โ added Vertices.chamfer for rounding corners of any set of vertices
- โ added integration of chamfer to body factories
- โ added engine.timing.isFixed option to disable dynamic timing
- โ added render.bounds for translating and scaling views
- โก๏ธ easier use of Engine.update and Engine.render for those using custom game loops
- ๐ fixed issues with time scaling
- ๐ fixed error in calculation of centre of mass
- โ removed Matter.Gui in preparation for the MatterTools project launch
โ Added
- โ added Demo.views
- โ added Demo.timescale
- โ added Demo.rounded
- โ added Demo.raycasting
- โ added demo support for hash + '-inspect' to start the MatterTools inspector
- โ added Composite.rebase
- โ added Composite.move
- โ added Composite.get
- โ added Matter.Query
- โ added Query.ray
- โ added Query.region
- โ added Bounds.translate
- โ added Bounds.shift
- โ added Mouse.setScale
- โ added Mouse.setPosition
- โ added mouse.absolute
- โ added mouse.wheelDelta
- โ added mouse.offset
- โ added Body.setStatic
- โ added Body.scale
- โ added body.timeScale
- โ added Vector.angle
- โ added Vertices.chamfer for rounding corners
- โ added Engine.render
- โ added engine.timing.isFixed option
- โ added render.bounds for translating and scaling views
- โ added Common.nextId
- โ added body.label
- โ added constraint.label
- โ added composite.label
๐ Changed
- ๐ changed engine.timing.timestamp to be simulation based rather than wall-clock based
- โก๏ธ changed correction to now be optional in Engine.update (defaults to 1)
- ๐ changed Events.on to return callback
- ๐ changed Events.off to accept callbacks for removal
- ๐ changed vertices in Bounds.create to optional
- ๐ changed engine.timeScale to engine.timing.timeScale
- ๐ moved Matter.Inspector and Matter.Gui to the MatterTools project
- ๐ moved event documentation to end of file for clarity
- โก๏ธ moved respective engine event triggers into Engine.update and Engine.render
โ Removed
- โ removed body.render.path (redundant)
- โ removed Body.nextId
- โ removed Constraint.nextId
- โ removed Composite.nextId
- โ removed Body.updateProperties (now a private method)
๐ Fixed
- ๐ fixed issues with timing.timeScale
- ๐ fixed constraints now account for timeScale
- ๐ fixed Vertices.centre calculation to get correct centre of mass