MCPcopy Index your code
hub / github.com/mrdoob/three.js / getWorldPosition

Method getWorldPosition

src/core/Object3D.js:996–1002  ·  view source on GitHub ↗

* Returns a vector representing the position of the 3D object in world space. * * @param {Vector3} target - The target vector the result is stored to. * @return {Vector3} The 3D object's position in world space.

( target )

Source from the content-addressed store, hash-verified

994 * @return {Vector3} The 3D object's position in world space.
995 */
996 getWorldPosition( target ) {
997
998 this.updateWorldMatrix( true, false );
999
1000 return target.setFromMatrixPosition( this.matrixWorld );
1001
1002 }
1003
1004 /**
1005 * Returns a Quaternion representing the position of the 3D object in world space.

Callers 6

Object3D.tests.jsFile · 0.80
Editor.jsFile · 0.80
renderLayersMethod · 0.80
updateLightDirectionMethod · 0.80
pointerMoveMethod · 0.80

Calls 2

updateWorldMatrixMethod · 0.95
setFromMatrixPositionMethod · 0.45

Tested by

no test coverage detected