1.0.16 • Published 3 years ago
physics-engine.js v1.0.16
physics-engine.js
Overview
-Front end library for creative UI.
-Combines the functionality of Matter.js, with particle.js.
-No use of libraries for better modularization and new algorithms with better time/space complexity.just pure javascript, and no dependencies.
- better performence over Matter.js
- better flexibility with shape, lines, and colors/gradience of particles.
-Customizable laws of physics and structure including:
- gravity
- weight/density
- terminal velocity
- flexibility
- amount of external force
- momentum
How to use
- npm install physics-engine.js (target file is "physics.js")
- there is a straight forward and easy explanation commented throughout the file(physics.js)
- repo linked below contains very simple example of front-end using this library. it is the same repo you see in the demo.
- download it and try yourself!
- please leave a star if you liked my work, I've put in a lot of work, and it means lot to me.
Demo