Hey again!
In the version 1.51.7 doing this causes no problems when I press E , wait and then press Q:
var app = this.app;
//the camera is defined somewhere previously
if(app.keyboard.wasPressed(pc.KEY_E))
{
this.camera.reparent(this.entity);
}
if(app.keyboard.wasPressed(pc.KEY_Q))
{
this.entity.removeChild(this.camera);
}
In version 1.52.6 the above code causes the camera to only render a solid color after pressing E and then Q.
Is this a bug? Is there a work around ?
Thanks for your time as always!