three.js - Gimbal lock at y axis 90 degrees -


i found problem rotations. using transform controls helper, if rotate mesh on y axis, when reach 90 degrees flipped -180 degrees.

i think due software avoiding gimbal lock, how avoid it? that is, x- , z-angles remain 0 degrees in display.

i tried on threejs editor (https://threejs.org/editor/) , occurs there. please me :)!

what describing has nothing gimbal lock.

three.js quaternion-based. equivalent euler angle representation provided convenience.

euler angles not unique; there many euler angles represent same orientation. see this answer info on how euler angles work in three.js.

if want rotate object on y-axis only, , have object.rotation.y continuous, can changing rotation order so:

object.rotation.order = 'yxz'; 

three.js r.87


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -