Answers for "babylon js camera position"

0

babylon js camera position

// Parameters : name, position, scene
    var camera = new BABYLON.UniversalCamera("UniversalCamera", new BABYLON.Vector3(0, 0, -10), scene);

// Targets the camera to a particular position. In this case the scene origin
    camera.setTarget(BABYLON.Vector3.Zero());

// Attach the camera to the canvas
    camera.attachControl(canvas, true);
Posted by: Guest on September-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language