1
2// Parameters : name, position, scene
3 var camera = new BABYLON.UniversalCamera("UniversalCamera", new BABYLON.Vector3(0, 0, -10), scene);
4
5// Targets the camera to a particular position. In this case the scene origin
6 camera.setTarget(BABYLON.Vector3.Zero());
7
8// Attach the camera to the canvas
9 camera.attachControl(canvas, true);
10