Roll ArcRotateCamera

My scene has an ArcRotateCamera that I am moving to specific locations (alpha, beta, radius). I would also like to change the roll (the rotation of the camera on the axis that lines up with its target) of the camera. How do I control that? I have tried changing the rotation and rotationQuaternion but that doesn’t seem to change anything.

Thank you

You can change camera.upVector

Sweet! That does look like it works. My rotation is specified as a Quaternion. How would I convert that to a Vector3?

The default up is (0,1,0). So basically you can create a vector with these values and rotate it with:

var newUp= new BABYLON.Vector3()
up.rotateByQuaternionToRef(quaternion, newUp)
1 Like

@Deltakosh Thanks that works perfectly!

1 Like