React Three Fiber: How Do I Change the Camera Angle?
Currently I Have a Perspectivecamera Set up Like So: It Seems to Be Pointing Straight into the Z Direction. I Would Like the Camera to Point Straight Down in...
Currently I have a PerspectiveCamera set up like so:
<Canvas>
<PerspectiveCamera
makeDefault
fov={50}
position={[0, 0, 80]}
/>
</Canvas>
It seems to be pointing straight into the z direction. I would like the camera to point straight down in the negative y direction. How can I change the angle that it points at?
1 Answer
You can add a rotation attribute to the camera same as you added position.
<Canvas>
<PerspectiveCamera
makeDefault
fov={50}
position={[0, 0, 80]}
rotation={[x, y, z]}
/>
</Canvas>