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
(andWorld
)- 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
)
- batch adding (
- โ added factory functions
- constraint meshing (
Composites.mesh
) - soft body factory (
Composites.softBody
)
- constraint meshing (
- โ added
RenderPixi
, a pixi.js WebGL renderer- added
Gui
option to switch renderer - added
Mouse.setElement
- added
- โ added
render.visible
flag toBody
andConstraint
(Issue #10) - โ added
id
toConstraint
andComposite
- โ added
type
names toBody
,Constraint
,Composite
- โ added
Common
functionsCommon.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
toPairs
- ๐ 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 arender
property - ๐ changed
Metrics
to only track FPS by default, use theextended
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
withnull
properties - ๐ fixed issue with sleeping, now ignores inactive pairs
- ๐ fixed issues with
Body.applyForce
(Issue #7)
- โ added six new demos