Scripting Camera

Activate camera

_r.camera.activate("Camera.FPV");

Go somewhere with animation

 _r.camera.goTo({ x : 0, y : 0, z : 0})

Position & Rotation

_r.camera.goTo({ x : 0, y : 0, z : 0}, { x : 0, y : Math.PI, z : 0})

Position, Rotation & animation duration

Duration in seconds

 _r.camera.goTo({ x : 0, y : 0, z : 0}, null, 4)

Animations options

_r.camera.goTo({ x : 0, y : 0, z : 0}, { x : 0, y : Math.PI, z : 0}, {
    duration : 3,
    easing : "easeInSine",
    complete : function() {
        console.log("animation completed")
    }
})

For more animation options see animations chapter.

results matching ""

    No results matching ""