New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JoystickDis joystickAng #41
Comments
When the canvas change to landscape, the joystick should automatically adjust to fit the canvas 🤔 |
https://github.com/lt15364967740/test |
Rotating the entire canvas using CSS could mess up the orientation. Typically, we just rotate the phone to achieve landscape view. |
When I rotate the css the slide is in the opposite direction of the gesture, but I don't know how to modify this coordinate and apply it to the camera |
Sorry, there is no way to modify the followCam coordinate. Rotating the canvas in CSS is not a common approach. Even if you just use a simple orbicontrol, the orientation of the camera would be off. |
Could you please explain the value range of setJoystick(joystickDis, joystickAng, runState) parameter? When I force the canvas to landscape, the gesture slide is perpendicular to the character movement direction, so I need to customize Joystick
The text was updated successfully, but these errors were encountered: