/bitECS-physics

Matter.JS rewrite for bitECS

Primary LanguageJavaScriptOtherNOASSERTION

bitECS-physics

Matter.JS rewritten physics engine for bitECS

(This project is still in work)

npm i N/A

Getting Started

N/A

Documentation

(Table of Contents goes here)

Bodies

A body is an entity which physically partakes with the engine.

Component Pos

  • x f64 - x position
  • y f64 - y position

A component declaring an objects position

Component Vel

  • x f64 - x velocity
  • y f64 - y velocity

A component declaring an objects velocity. Objects without the Velocity component are static. To move, objects also require the Position component

Component Acc

  • x f64 - x acceleration
  • y f64 - y acceleration

A component declaring an objects acceleration. To change speed, objects also require the Velocity component.

Component Rotation

  • angle f64 - rotation of the body along its' center

A component declaring an objects rotation. Objects will rotate along their center point.

In Work

src - project source src_matter_js - matter-js source, analysed for rewrite