diff --git a/docs/api/core/Object3D.html b/docs/api/core/Object3D.html index 698fb37f1a6626..4ad28094c9bbe3 100644 --- a/docs/api/core/Object3D.html +++ b/docs/api/core/Object3D.html @@ -196,7 +196,10 @@

[method:null add]( [page:Object3D object], ... )

[method:null applyMatrix]( [page:Matrix4 matrix] )

-
This updates the position, rotation and scale with the matrix.
+
Applies the matrix transform to the object and updates the object's position, rotation and scale.
+ +

[method:Object3D applyQuaternion]( [page:Quaternion quaternion] )

+
Applies the rotation represented by the quaternion to the object.

[method:Object3D clone]( [page:Boolean recursive] )

diff --git a/src/core/Object3D.js b/src/core/Object3D.js index d9bd61cdb16ada..a45e66d9a20abd 100644 --- a/src/core/Object3D.js +++ b/src/core/Object3D.js @@ -112,6 +112,14 @@ Object.assign( Object3D.prototype, EventDispatcher.prototype, { }, + applyQuaternion: function ( q ) { + + this.quaternion.premultiply( q ); + + return this; + + }, + setRotationFromAxisAngle: function ( axis, angle ) { // assumes axis is normalized @@ -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) var m1 = new Matrix4();