Jump to content

Issue with P2 + stopFullScreen + collisionMask + world bounds


Recommended Posts



I'am working on a game but I've an issue.


I use collisionMasks to manage collision between all my bodies with P2.


When I go to fullScreen all is working well, but when I switch back to normal screen with stopFullscreen, it seems that my collisions masks or world bounds doesn't work anymore and all bodies go through the floor (left, right and top world bounds).


Here is a plunker : 




To launch the example properly, you have a little blue button, right top corner, with a resizing screen symbol, just click on it.


A new window launches then press enter to go fullscreen, enter again to go back then you'll be able to see the issue....


Any idea ?


Thank you !

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...