matterjs-ragdoll

1.0.9 • Public • Published

To use:

  • expects one argument, scale amount (0 through 1)
  • relies on import of main matter.js physics engine
import Matter from 'matter-js'
import { createRagdoll } from 'matterjs-ragdoll'
  • then, in your main program call..
createRagdoll([size int])
  • createRagdoll(1) returns a Matter.Composite of the ragdoll

Package Sidebar

Install

npm i matterjs-ragdoll

Weekly Downloads

6

Version

1.0.9

License

ISC

Unpacked Size

4.72 kB

Total Files

3

Last publish

Collaborators

  • cryptoneum