Legomite Posted November 8, 2014 Share Posted November 8, 2014 This code is practically guess work and I think it's probably not close to syntax.game.createScene('world', { init: function() { world = new game.World(0, 0); this.world = new game.Circle(100); }});I also want to set gravity for the ball, make it bouncy, and a sprite.Also Can someone help me better understand the game.world and how to activate or disable it? Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted November 8, 2014 Share Posted November 8, 2014 Hi @Legomite I haven't played with physics yet, but if you look under the Box2d section (3rd one down) on Fiddler, it most likely has everything you need ... http://vermeire.home.xs4all.nl/panda/ Quote Link to comment Share on other sites More sharing options...
Jorasso Posted November 8, 2014 Share Posted November 8, 2014 OP seems to be interested in Panda build-in physics system. Take a look at Flying Dog example, it uses Panda's physics and you can see there how to use it. 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.