planck.js
planck.js copied to clipboard
How to declare a MassData to use with getMassData
i tried var md = new planck.MassData() and error message is no constructor i'm trying to put a dot on the center of mass
btw a getCenterOfMass () would be useful
It's just an object, you could just create an object like md = { mass: 0, center: Vec2(), I: 0 }
btw a getCenterOfMass () would be useful
getWorldCenter() and getLocalCenter() return the center of mass.