Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object3D: add applyQuaternion() #11334

Merged
merged 2 commits into from
May 15, 2017
Merged

Object3D: add applyQuaternion() #11334

merged 2 commits into from
May 15, 2017

Conversation

WestLangley
Copy link
Collaborator

@WestLangley WestLangley commented May 14, 2017

This is convenient for use in this pattern:

var q = new THREE.Quaternion().setFrom*( args ); // Euler angle, axis-angle, rotation mat, unit vectors

object.applyQuaternion( q );

and applies a rotation around a world axis -- as opposed to a local one. (Objects having a rotated parent excluded.)

@mrdoob mrdoob merged commit 83d081e into mrdoob:dev May 15, 2017
@mrdoob
Copy link
Owner

mrdoob commented May 15, 2017

Thanks!

@WestLangley WestLangley deleted the dev-quat branch May 15, 2017 04:40
@@ -272,7 +280,7 @@ Object.assign( Object3D.prototype, EventDispatcher.prototype, {

lookAt: function () {

// This routine does not support objects with rotated and/or translated parent(s)
// This method does not support objects with rotated and/or translated parent(s)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😁

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hehe. I'm younger than I used to be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants