11.0.0 • Published 3 years ago
pocket-physics v11.0.0
pocket-physics
Demos at https://kirbysayshi.github.io/pocket-physics.
Fully typed, as it's written in Typescript!
npm install pocket-physics
var { accelerate, inertia } = require("pocket-physics");
var point = {
cpos: { x: 0, y: 0 },
ppos: { x: 0, y: 0 },
acel: { x: 10, y: 0 },
};
// 16 is the delta time between steps in milliseconds
accelerate(point1, 16);
inertia(point);
console.log(point.cpos);
// { x: 5.12, y: 0 }
Maintenance
Demos to gh-pages:
yarn demos:deploy
Publishing:
npm version [...]
git push origin HEAD --tags
npm publish
LICENSE
MIT
10.2.0
3 years ago
11.0.0
3 years ago
10.1.1
3 years ago
10.1.0
4 years ago
10.0.0
5 years ago
9.0.1
5 years ago
9.0.0
5 years ago
8.0.2
6 years ago
8.0.1
6 years ago
8.0.0
6 years ago
7.1.2
8 years ago
7.1.1
8 years ago
7.1.0
8 years ago
7.0.0
8 years ago
6.0.0
9 years ago
5.0.0
9 years ago
4.0.0
10 years ago
3.0.0
10 years ago
2.8.0
10 years ago
2.7.0
10 years ago
2.6.1
10 years ago
2.6.0
11 years ago
2.5.0
11 years ago
2.4.0
11 years ago
2.3.0
11 years ago
2.2.0
11 years ago
2.1.0
11 years ago
2.0.0
11 years ago
1.0.0
11 years ago