Set OrbitControls polar angle limits to [0.01, pi-0.01]
OrbitControls suffers from gimbal lock: if you rotate all the way to the north or south pole, it will feel 'stuck' in the east-west direction. This patch fixes the issue by setting the default minimum and maximum polar angles to 0.01 and pi-0.01 radians, which eliminates any perceptible gimbal lock effect at ordinary browser frame rates.
Showing
想要评论请 注册 或 登录