📜  babylon js 相机位置 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:59.050000             🧑  作者: Mango

代码示例1
// 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);