#Rotate camera in R3F?

5 messages · Page 1 of 1 (latest)

remote nova
#

I've tried doing it the regular three way but it wont work, tried with hooks, no change. Idk how to make it rotate

#

I just want to set the starter camera to look straight instead of top down

timid aspen
#

the camera will have a starting position

<PerspectiveCamera makeDefault position={[0.0, 2.0, 4.5]} />

have you tried adjusting these values?

#

you can also access the camera within a useFrame hook

useFrame(({ camera }) => { console.log(camera); console.log(camera.rotation); console.log(camera.position); });

remote nova
#

I havent used a perspective camera, but I was able to figure it out