I’m getting an “Invalid calling object” error in IE11 when using Matter physics. The code that generates the error is in the Matter.Common module (see screen grab). Has anyone else experienced this? Is there a way around it?
Try adding this after Phaser, before game creation:
Phaser.Physics.Matter.Matter.Common.isString = function(obj) {
return Object.prototype.toString.call(obj) === '[object String]';
};
I’m not using the CDN, so I changed the phaser code to …
Common.isString = function(obj) {
return ({}).toString.call(obj) === ‘[object String]’;
};
This seemed to do the trick.