How to use the conf.camera function in conf

To help you get started, we’ve selected a few conf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mwcz / Kimotion / src / renderer.js View on Github external
function set_camera(axis, v) {
    camera.position[axis] = v;
    camera.lookAt(conf.camera.origin);
}
github mwcz / Kimotion / src / renderer.js View on Github external
function position_camera() {
    camera.position.x = conf.camera.x;
    camera.position.y = conf.camera.y;
    camera.position.z = conf.camera.z;
    camera.lookAt(conf.camera.origin);
}