how to use quaternion to control draging the model #852

Closed
naoomi opened this Issue Dec 6, 2011 · 1 comment

Comments

Projects
None yet
3 participants
@naoomi

naoomi commented Dec 6, 2011

hi:
i was using rotation to control dragging the model ,but it seems work strange. so i want to use THREE.Object3D.quaternion to control the model to drag and walking... but i am not sure how to do it ...

@renegademaster88

This comment has been minimized.

Show comment
Hide comment
@renegademaster88

renegademaster88 Dec 13, 2011

you have to set to .useQuaternion = true;
then you can set the .quaternion values
and finally call .updateMatrix() which will apply the quaternions transform to the matrix
now .rotation will be ignored. but .position is still used.

you have to set to .useQuaternion = true;
then you can set the .quaternion values
and finally call .updateMatrix() which will apply the quaternions transform to the matrix
now .rotation will be ignored. but .position is still used.

@mrdoob mrdoob closed this Jan 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment