* Applies the given transformation matrix to the object and updates the object's position, * rotation and scale. * * @param {Matrix4} matrix - The transformation matrix.
( matrix )
| 446 | * @param {Matrix4} matrix - The transformation matrix. |
| 447 | */ |
| 448 | applyMatrix4( matrix ) { |
| 449 | |
| 450 | if ( this.matrixAutoUpdate ) this.updateMatrix(); |
| 451 | |
| 452 | this.matrix.premultiply( matrix ); |
| 453 | |
| 454 | this.matrix.decompose( this.position, this.quaternion, this.scale ); |
| 455 | |
| 456 | } |
| 457 | |
| 458 | /** |
| 459 | * Applies a rotation represented by given the quaternion to the 3D object. |
no test coverage detected