mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-27 09:50:52 -05:00
100 lines
3.2 KiB
Markdown
100 lines
3.2 KiB
Markdown
|
# Matter.js Changelog
|
||
|
|
||
|
[brm.io/matter-js](http://brm.io/matter-js)
|
||
|
|
||
|
----------
|
||
|
|
||
|
## 0.7.0-alpha - 2014-04-01
|
||
|
|
||
|
#### 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](https://github.com/liabru/matter-js/issues/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](https://github.com/liabru/matter-js/issues/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](https://github.com/liabru/matter-js/issues/7))
|
||
|
- fixed issue in `Common.extend` with `null` properties
|
||
|
- fixed issue with sleeping, now ignores inactive pairs
|
||
|
- fixed issues with `Body.applyForce` ([Issue #7](https://github.com/liabru/matter-js/issues/7))
|
||
|
|
||
|
## 0.5.0-alpha - 2014-02-28
|
||
|
|
||
|
- initial release
|