Pages

Se afișează postările cu eticheta matter. Afișați toate postările
Se afișează postările cu eticheta matter. Afișați toate postările

sâmbătă, 16 decembrie 2017

The Matter javascript for 2D collider.

The Matter.js is created with javascript and can be used like a 2D physics engine for the web development and game engine.
This javascript for web and mobile can be found on official website.
The development team tell us about the features of this tool:
  • Rigid bodies
  • Compound bodies
  • Composite bodies
  • Concave and convex hulls
  • Physical properties (mass, area, density etc.)
  • Restitution (elastic and inelastic collisions)
  • Collisions (broad-phase, mid-phase and narrow-phase)
  • Stable stacking and resting
  • Conservation of momentum
  • Friction and resistance
  • Events
  • Constraints
  • Gravity
  • Sleeping and static bodies
  • Plugins
  • Rounded corners (chamfering)
  • Views (translate, zoom)
  • Collision queries (raycasting, region tests)
  • Time scaling (slow-mo, speed-up)
  • Canvas renderer (supports vectors and textures)
  • MatterTools for creating, testing and debugging worlds
  • World state serialisation (requires resurrect.js)
  • Cross-browser and Node.js support (Chrome, Firefox, Safari, IE8+)
  • Mobile-compatible (touch, responsive)
  • An original JavaScript physics implementation (not a port)
You can see one good example here.
How can be used ?
First, get a stable release and include the script in your web page and add the matter engine objects and features, see this example: