FreeCamera input is broken

The FreeCamera input is broken.
Now when you press the up, down, left and right buttons, the camera will be pulled to the zero point.

I confirm :

Thanks for the reports, I asked @PolygonalSun to have a look as soon as he’s in!

This should be the problem, see line 336.

1 Like

I think, just put

  this.position.copyFrom(this.cameraDirection);

Change it to

  this.position.copyFrom(this._deferredPositionUpdate);

should solve the problem

1 Like

An interesting solution is to add a meaningless parent to the camera

    camera.parent = new BABYLON.TransformNode("")

This would cause the code to take another path and skip the bug.

1 Like

Working on it, thanks a lot for your analysis @qq2315137135 !!!

1 Like

6.12.3 fixes the issue and is now deployed to the playground.

1 Like