Skip to content

Daxbot/node-smove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sinusoidal movement library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published