* Converts the given vector from this 3D object's world space to local space. * * @param {Vector3} vector - The vector to convert. * @return {Vector3} The converted vector.
( vector )
| 675 | * @return {Vector3} The converted vector. |
| 676 | */ |
| 677 | worldToLocal( vector ) { |
| 678 | |
| 679 | this.updateWorldMatrix( true, false ); |
| 680 | |
| 681 | return vector.applyMatrix4( _m1.copy( this.matrixWorld ).invert() ); |
| 682 | |
| 683 | } |
| 684 | |
| 685 | /** |
| 686 | * Rotates the object to face a point in world space. |
no test coverage detected