You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use the code from the main description and run a project the only one control that is working is left mouse button.
To fix this it is necessary to change the initial position of the camera like this: camera.position.set( 0, 0, 5 );
There is this line in the basic example: https://github.com/yomotsu/camera-controls/blob/dev/examples/basic.html#L69
but this behavior seems like a bug.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
See error
Code
No response
Live example
No response
Expected behavior
The all controls are working on the initial start when I use the code from the main page.
Screenshots or Video
No response
Device
No response
OS
No response
Browser
No response
The text was updated successfully, but these errors were encountered:
The control instance must have a specified distance between the center and the camera position.
Therefore, you need to determine the distance from the camera position to the origin (0, 0, 0).
Although you can adjust these positions using the setLookAt() function.
I think this information must be there on the main page. Then it will meet the expected behavior. Even better would be to set the distance in the initial configuration.
Describe the bug
If I use the code from the main description and run a project the only one control that is working is left mouse button.
To fix this it is necessary to change the initial position of the camera like this:
camera.position.set( 0, 0, 5 );
There is this line in the basic example:
https://github.com/yomotsu/camera-controls/blob/dev/examples/basic.html#L69
but this behavior seems like a bug.
To Reproduce
Steps to reproduce the behavior:
Code
No response
Live example
No response
Expected behavior
The all controls are working on the initial start when I use the code from the main page.
Screenshots or Video
No response
Device
No response
OS
No response
Browser
No response
The text was updated successfully, but these errors were encountered: