Jump to content

p2 collision groups


Recommended Posts


The example given uses the collides method to handle the contact. The problem is it only fires on first contact and so if you remain pressed against the object it won't continually fire... what is the best way/proper way in Phaser P2 to handle collision? Collides seems to only handle begin contact how about the end contact? Or repeating the collision every so many seconds? 

I'm only trying to understand the proper way to use the P2 physics system as it is and I don't want to reinvent the wheel because I don't understand the tools I already have.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...