I'm using PointLight in my ThreeJs project. I need to make it point to the oriented direction in the image below, but I can't change it. below the code
const light = new THREE.PointLight( 0xffffff, 0.01, 40 );
light.position.set( 0, 0, 30 );
//light.rotateY(270); did not work
light.castShadow = true;
scene.add( light );