changed raycaster to be local