ipop Posted August 7, 2013 Share Posted August 7, 2013 Hi i found this flash example for wraparound in a box 2d environment, does anyone know how to port this over to javascript or know of a similar javascript example? http://www.wildbunny.co.uk/blog/2012/04/13/implementing-a-wrap-around-world/ thx Quote Link to comment Share on other sites More sharing options...
rsadwick Posted August 9, 2013 Share Posted August 9, 2013 Box2d has been ported to javascript by several different developers: http://stackoverflow.com/questions/7628078/which-box2d-javascript-library-should-i-use Another physics library I've used in the past has been chipmunk, which now has a javascript flavor. Chipmunk has slight differences in terminology but the math is (should) be the same. https://github.com/josephg/Chipmunk-js If you're trying to port that specific example over to js, I'd recommend the above since both frameworks deal with AABB Collisions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.