Sketchfab Forum

Query value of camera direction

viewer-api

(Geophotologist) #1

Is there a way to get the value of which way the camera is facing (ie. north east) from the viewer api or elsewhere?


#2

You can use getCameraLookAt to get the camera's position and target.

https://sketchfab.com/developers/viewer/functions#api-getCameraLookAt