-
Notifications
You must be signed in to change notification settings - Fork 273
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
FirstPersonController camera pan angle issue #506
Comments
Neat!!! |
Sorry, this is not enough. |
Nice catch! Try changing the addition to this: // Added bw
// Reset panAngle to an equivalent angle within 360 degrees
if(Math.abs(_panAngle) > 360) {
if (_panAngle < 0)
panAngle = (_panAngle % 360) + 360;
else
panAngle = _panAngle % 360;
}
// End bw |
Thank you for fast replying. |
fixed in 68a8bdc |
The FirstPersonController snaps the camera all the way around when the pan angle is set to less than -360 or greater than 360. A suggested correction to the update function:
The text was updated successfully, but these errors were encountered: