Reputation
Top tag
Next privilege 15 Rep.
Flag posts
Badges
2
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
May
27
awarded  Popular Question
Jul
30
comment Quaternions - how to limit axis?
Thanks a lot for help, your;s post is a solution.
Jul
25
comment Quaternions - how to limit axis?
I get the quaternion from axis and angle<br> var angle = Math.acos( _rotateStart.dot( _rotateEnd ) / _rotateStart.length() / _rotateEnd.length() );<br> var axis = ( new THREE.Vector3() ).cross( _rotateStart, _rotateEnd ).normalize();<br> quaternion.setFromAxisAngle( axis, -angle );<br> <br> Quat angle is perpendicular to the camera's lookat and view is still rolling, when I try to set axis perpendicular to lookat alghoritm crashes.<br> Thank's for link, now I better understand trackball concept, but still I don't know how to solve my problem with rolling. Please write more.
Jul
25
awarded  Student
Jul
25
comment Quaternions - how to limit axis?
It's simply to make it when key is pressed, but problem is how to do it with mouse controller.
Jul
25
asked Quaternions - how to limit axis?