🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

pocket-physics

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pocket-physics

Verlet physics extracted from pocket-ces demos

latest
Source
npmnpm
Version
11.0.0
Version published
Weekly downloads
98
-13.27%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

verlet

FAQs

Package last updated on 30 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts