smove

1.1.5 • Public • Published

node-smove

Smove is a library for producing human-like sinusoidal motion based on work by Joseph Sullivan.

Example usage

1. Simple movement

const Smove = require('smove');
const s = new Smove({ xf: 1.0, a: 1.0 });
console.log(s.sample());

Example 1

2. Starting velocity

const Smove = require('smove');
const s = new Smove({ xf: 1.0, a: 1.0, v0: 0.5 });
console.log(s.sample());

Example 2

3. Velocity limits

const Smove = require('smove');
const s = new Smove({ xf: 1.0, a: 1.0, v_min: 0.1, v_max: 0.68 });
console.log(s.sample());

Example 3

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.5
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.5
    11
  • 1.1.4
    3
  • 1.1.3
    3
  • 1.0.1
    3
  • 1.0.0
    3

Package Sidebar

Install

npm i smove

Weekly Downloads

8

Version

1.1.5

License

MIT

Unpacked Size

11.9 kB

Total Files

4

Last publish

Collaborators

  • wilkinsw