import * as BABYLON from 'babylonjs';
import { scene, newColor } from '../helpers';
const debug = false;
export const newPickingRay = (x, y) => {
  const ray = scene.createPickingRay(x, y, BABYLON.Matrix.Identity(), scene.activeCamera);
  const rayHelper = new BABYLON.RayHelper(ray);
  if (debug) {
    rayHelper.show(scene, newColor('#359eff'));
  }
  return rayHelper;
};