Physics icon indicating copy to clipboard operation
Physics copied to clipboard

would be more useful if it didn't assume a browser (e.g. window)

Open sandover opened this issue 11 years ago • 1 comments

It would be great to be able to use this as a generic physics engine in any Javascript context, not just one where 'window' is defined. Currently I'm not aware of a way to do that.

sandover avatar Mar 16 '15 18:03 sandover

Thanks for posting! This commit should remove the window dependency. Though I don't know if this will work with something like browserify.

https://github.com/jonobr1/Physics/commit/f91d609eed3f9e11fcfe91265691a00bec01f71a

jonobr1 avatar Mar 17 '15 20:03 jonobr1