Arcrotate Camera position and rotation

Hello everyone!

Is there a way to transform an arcrotate alpha/beta/radius coordinates to position/rotation coordinates?

Thanks for your help!

I think you have access to them on the camera after update ???

Line 8 here can show you how you can get the quaternion, a forward ray and the camera’s position.

https://playground.babylonjs.com/#A1210C#74

1 Like

It doesn’t seem so, I always have null value in the rotationQuaternion of an ArcRotateCamera.

See this playground line 82: https://www.babylonjs-playground.com/#A4HF3#18

I try to play with targets and positions but can’t find a way to make it work.

Great it works @RaananW! Perfect way to have the rotation without having to go through targets and a separate freecamera!

Thannnnnnks

1 Like

Playground showing the result with @RaananW solution : https://www.babylonjs-playground.com/#A4HF3#18

1 Like