getWorldPosition method

Vector3 getWorldPosition(
  1. Vector3? target
)

Implementation

Vector3 getWorldPosition(Vector3? target) {
  if (target == null) {
    print('three.Object3D: .getWorldPosition() target is now required');
    target = Vector3.init();
  }

  updateWorldMatrix(true, false);

  return target.setFromMatrixPosition(matrixWorld);
}