diff --git a/src/math/Vector3.js b/src/math/Vector3.js index d6f00e7bc1eba8..e05694f3a8748f 100644 --- a/src/math/Vector3.js +++ b/src/math/Vector3.js @@ -652,7 +652,13 @@ Object.assign( Vector3.prototype, { setFromMatrixPosition: function ( m ) { - return this.setFromMatrixColumn( m, 3 ); + var e = m.elements; + + this.x = e[ 12 ]; + this.y = e[ 13 ]; + this.z = e[ 14 ]; + + return this; }, @@ -672,7 +678,6 @@ Object.assign( Vector3.prototype, { setFromMatrixColumn: function ( m, index ) { - return this.fromArray( m.elements, index * 4 ); },