Closed lt15364967740 closed 7 months ago
Just to clarify, are you looking for camera control without enabling pointer lock, or would you like to know how to enable pointer lock?
Just to clarify, are you looking for camera control without enabling pointer lock, or would you like to know how to enable pointer lock? I'm looking for a camera without a mouse lock
At the moment, it only supports pointer lock camera control. I'm thinking about adding drag control to the camera later on đ¤
At the moment, it only supports pointer lock camera control. I'm thinking about adding drag control to the camera later on đ¤
OK, thank you.
@lt15364967740 , you can now use follow cam without pointer lock (version 1.0.42)
@ErdongChen-Andrew whats the process for disabling the pointer lock on a web browser? Not seeing a prop to turn it off, but it looks like its possible to unlock the mouse and only pan with drag.
@lklyne you can remove the requestPointerLock
from the canvas component:
<Canvas
shadows
/// onPointerDown={(e) => {
/// (e.target as HTMLCanvasElement).requestPointerLock();
/// }}
>
@ErdongChen-Andrew that was easy â totally overlooked that. Thank you!!
I can control the movement of the character, but I don't know how to change the position of the camera, and use the mouse to control the camera to rotate around the objec