camera-controls icon indicating copy to clipboard operation
camera-controls copied to clipboard

Pointer lock behaviour different ?

Open narasimhajupally opened this issue 1 year ago • 1 comments

Describe the bug

lockPointer() function is behaving diff than <PointerLockControls/>(demo: https://vkgi6.csb.app/) from https://github.com/pmndrs/drei

lockPointer() here seems to move the camera and in pointerLockControls the camera seems to rotate in the current position

To Reproduce

https://yomotsu.github.io/camera-controls/examples/pointer-lock.html

default behaviour

Code

No response

Live example

No response

Expected behavior

https://vkgi6.csb.app/

Screenshots or Video

No response

Device

No response

OS

No response

Browser

No response

narasimhajupally avatar Jan 06 '24 16:01 narasimhajupally

Thanks for your report. However, I think that is an intended behavior. camera-controls has the distance from the center because of the orbit rotation.

Although you can set almost zero distance like (0.00001)

yomotsu avatar Jan 22 '24 08:01 yomotsu