photonstorm/phaser — pull request #1071 by Dumtard (2014-07-27 20:08:01+00:00)
Title: Fix for previous PR #1028

Fix to previous PR which I had noticed because of this thread. http://www.html5gamedevs.com/topic/8050-collideworldbounds-different-in-207/

The setBoundsToWorld call was overriding the setBoundsToWorld in the P2 constructor (line 181) which I had not noticed before. So I just copied the P2 style and added the setBoundsToWorld calls at the end of the other 2 physics systems constuctors, which makes more sense as each system now handles setting the bounds to their own systems.

On a side note, P2.setBoundsToWorld has setCollisionGroup=true, seems more intuitive to be default to false to me, if it had been false there would have been no issue. If anyone calls Physics.setBoundsToWorld() (like I had) it passes no parameters to P2.setBoundsToWorld and so will have setCollisionGroup = true, which I don't think would be most peoples intentions.