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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: