var cam = vxl.c.camera;
//cam.createLandmark( name , position , focal point );
cam.createLandmark('to-cone',[-50,40,100],[-50,0,0]);
var cam = vxl.camera;2. Go to that landmark
cam.setLandmark('to-home');
//cam.gotoLandmark(name, duration in ms, fps);
cam.gotoLandmark('to-cone',3000,30);
3.Create an animation:
steps = [
['to-cone',2000,30],
['to-sphere',2000,30],
['to-cylinder',2000,30],
['to-home',2000,30]
];
cam.doLandmarkAnimation(steps);