Matter.js is a JavaScript/HTML5 2D physics engine for the web. It includes WebGL and Canvas renderers, it’s cross-browser and mobile compatible, and supports a variety of physics properties.
GitHub: https://github.com/liabru/matter-js
Docs: http://brm.io/matter-js-docs
Demo Page: http://brm.io/matter-js-demo/
Matter.js
Matter.js is a JavaScript 2D rigid body physics engine for the web
Features - Status - Install - Usage - Docs - Implementation - References - License
Demos
- Mixed Shapes
- Solid Shapes
- Newton's Cradle
- Wrecking Ball
- Slingshot Game
- Rounded Corners (Chamfering)
- Views
- Time Scaling
- Raycasting
- Sprites
- Pyramid
- Car
- Catapult
- Reverse Gravity
- Bridge
- Avalanche
- Basic Soft Bodies
- Cloth
- Events
- Chains
- Ball Pool
- Stack
- Circle Stack
- Restitution
- Friction
- Air Friction
- Sleeping
- Grid Broadphase
- Beach Balls
- Stress 1
- Stress 2
Features
- Physical properties (mass, area, density etc.)
- Rigid bodies of any convex polygon
- Stable stacking and resting
- Collisions (broad-phase, mid-phase and narrow-phase)
- Restitution (elastic and inelastic collisions)
- Conservation of momentum
- Friction and resistance
- Constraints
- Gravity
- Composite bodies
- Sleeping and static bodies
- Events
- Rounded corners (chamfering)
- Views (translate, zoom)
- Collision queries (raycasting, region tests)
- Time scaling (slow-mo, speed-up)
- Canvas renderer (supports vectors and textures)
- WebGL renderer (requires pixi.js)
- MatterTools for creating, testing and debugging worlds
- World state serialisation (requires resurrect.js)
- Cross-browser (Chrome, Firefox, Safari, IE8+)
- Mobile-compatible (touch, responsive)
- An original JavaScript physics implementation (not a port)
'프로그래밍 > Web' 카테고리의 다른 글
[javascript] Angularjs 도입가이드 공개 (0) | 2015.02.26 |
---|---|
Cross Browser image preview in Image upload section is not working in ie8 (0) | 2015.02.23 |
[Charts] ECharts: A comprehensive charting library (0) | 2015.01.13 |
[javascript] Snabbt.js: A minimalist JavaScript animation library (0) | 2015.01.06 |
[javascript] DropzoneJS - drag'n'drop file uploads with image previews library (0) | 2014.12.19 |