Jump to content

Issue with P2 + stopFullScreen + collisionMask + world bounds


UnlimitedX
 Share

Recommended Posts

Hello,

 

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 : 

 

http://plnkr.co/edit/DPJUzimhfwwWFHEEbV8b?p=preview

 

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

 Share

  • Recently Browsing   0 members

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