MathBox.js icon indicating copy to clipboard operation
MathBox.js copied to clipboard

Camera problem when Theta=Pi/2

Open ctsan opened this issue 11 years ago • 1 comments

when theta=Pi/2 , phi becomes a fixed number you can "solve" this by setting theta 1.00001*Pi/2 but you know, it's ugly

ctsan avatar Aug 27 '14 12:08 ctsan

This is due to a change in floating point behaviour in Chrome. If you want to fix it, you could cap the theta in the camera controller to e.g. 0.999 * π/2. Should leave enough precision for the angle without being noticeable.

unconed avatar Aug 27 '14 12:08 unconed