Skip to content
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

HoverController Wrap bug #299

Closed
NoseKills opened this issue Jun 19, 2012 · 1 comment
Closed

HoverController Wrap bug #299

NoseKills opened this issue Jun 19, 2012 · 1 comment
Assignees
Labels

Comments

@NoseKills
Copy link

http://away3d.com/forum/viewthread/2511/

The hover controller _currentPanAngle is not clamped and can grow over 360', causing a quick spin in the opposite direction.

Should be easily reproducible by pointing the hover controlled camera at anything, setting "wrapPanAngle = true;", and incrementing the controllers pan angle. After one revolution of proper behavior, the camera should suddenly spin in the wrong direction.

Successfully reproduced by:
a) incrementing the pan angle with "camControl.panAngle += 0.3" on enter frame
b) and also by calculating the rotation angle from an ObjectContainer3D's front vector with "Math.atan2()" (rotating the container)

clamping the "_currentPanAngle" just like "panAngle" seems to fix the issue.

@ghost ghost assigned richardolsson Jun 19, 2012
@richardolsson
Copy link
Member

Thanks for reporting. I'll look into this ASAP!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants