mirage29 Posted November 30, 2014 Share Posted November 30, 2014 Hi,I am Taiwanese,Pandjs is so good.My English is poor but I have a problem. I do this example - collision handling in this page. http://vermeire.home.xs4all.nl/panda/index.html# I copyed full code in my js and used my pic then runed.but the collision not work!They through each other! http://imgur.com/wnP0jh9 Why?Plz help me!! Quote Link to comment Share on other sites More sharing options...
Phempt Posted November 30, 2014 Share Posted November 30, 2014 Hello mirage29, first of all: Welcome in order to debug your game add ?debugdraw to the end of the url. Example: http://yourhost.com/yourgame/index.html?debugdraw Than, is it possible to see the source? Can you upload it somewhere? Quote Link to comment Share on other sites More sharing options...
mirage29 Posted November 30, 2014 Author Share Posted November 30, 2014 thanks Phempt. Now I Solved it! The example code has worng. this.body = new game.Body({ position: { x: x, y: y }, velocityLimit: { x: 150, y: 150 }, velocity: {x:-100,y:-50}, collisionGroup: 1, collideAgainst: 0, mass: 0 }); to this.body = new game.Body({ position: { x: x, y: y }, velocityLimit: { x: 150, y: 150 }, velocity: {x:-100,y:-50}, collisionGroup: 1, collideAgainst: [0], mass: 0 }); Quote Link to comment Share on other sites More sharing options...
Phempt Posted November 30, 2014 Share Posted November 30, 2014 probably it depends on PandaJS version. have a great day 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.