mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 06:00:41 +00:00
2 fixed bodies won't do anything
This commit is contained in:
parent
100f4fc013
commit
e36cc68044
1 changed files with 6 additions and 0 deletions
|
@ -268,6 +268,12 @@ var World = new Class({
|
|||
|
||||
checkBodies: function (bodyA, bodyB)
|
||||
{
|
||||
// 2 fixed bodies won't do anything
|
||||
if (bodyA.collides === COLLIDES.FIXED && bodyB.collides === COLLIDES.FIXED)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// bitwise checks
|
||||
if (bodyA.checkAgainst & bodyB.type)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue