Plugin jQuery: Matter.js : 2D Rigid body physics Engine for the web

Matter.js : 2D Rigid body physics Engine for the web
http://www.jqueryrain.com/?http://brm.io/matter-js/
https://github.com/liabru/matter-js/archive/master.zip
https://github.com/liabru/matter-js
15/03/2014

Nội dung

Matter.js : 2D Rigid body physics Engine for the web

Matter.js is a 2D rigid body physics engine for the web written in JavaScript (yes, another).

Features:

  • Physical properties (mass, area, density etc.)
  • Rigid bodies of any convex polygon
  • Stable stacking and resting
  • Restitution (elastic and inelastic collisions)
  • Conservation of momentum
  • Friction and resistance
  • Constraints
  • Gravity
  • Composite bodies
  • Sleeping and static bodies
  • Original JavaScript physics implementation (not a port)
  • HTML5 canvas renderer (optional)
  • Mobile-compatible (touch, scaleable)
  • Cross-browser (chrome, firefox, IE8+)
  • World state serialisation (requires resurrect.js)
  • Built in GUI for testing (requires dat.gui.js)
  • Time scaling (slow-mo, speed-up)
  • Broad-phase, mid-phase and narrow-phase collisions
  • Events (edge)
  • Sprite texture rendering (edge)

Nguồn: www.jqueryrain.com/2014/03/matter-js-2d-rigid-body-physics-engine-web/


Chưa có phản hồi
Bạn vui lòng Đăng nhập để bình luận