Skip to content

Commit 96a79cd

Browse files
committed
Added warning if physics body is enabled on unknown physics system.
1 parent ca13a82 commit 96a79cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/physics/Physics.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ Phaser.Physics.prototype = {
250250
{
251251
this.matter.enable(object);
252252
}
253+
else
254+
{
255+
console.warn(object.key + ' is attempting to enable a physics body using an unknown physics system.');
256+
}
253257

254258
},
255259

0 commit comments

Comments
 (0)