Seen in master (sha c846a92153e55893901dc4c2590d8e853c3f8da6)
Here's a copy/paste from client code with annotations:
physics.possess = function () {
if (possessed) possessed.remove(game.camera);
var key = pov === 1 ? 'cameraInside' : 'cameraOutside';
player[key].add(game.camera);
//--------
Uncaught TypeError: Cannot call method 'add' of undefined
key has value of 'cameraInside'
but player[key] is undefined
//--------
possessed = player[key];
};
Seen in master (sha c846a92153e55893901dc4c2590d8e853c3f8da6)
Here's a copy/paste from client code with annotations:
//-------- Uncaught TypeError: Cannot call method 'add' of undefined key has value of 'cameraInside' but player[key] is undefined //-------- possessed = player[key]; };