{"action":"opened","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/14033","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/14033/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/14033/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/14033/events","html_url":"https://github.com/mrdoob/three.js/issues/14033","id":321710897,"number":14033,"title":"Ray Intersect**** functions do not change target to null","user":{"login":"kpetrow","id":18248938,"avatar_url":"https://avatars2.githubusercontent.com/u/18248938?v=4","gravatar_id":"","url":"https://api.github.com/users/kpetrow","html_url":"https://github.com/kpetrow","followers_url":"https://api.github.com/users/kpetrow/followers","following_url":"https://api.github.com/users/kpetrow/following{/other_user}","gists_url":"https://api.github.com/users/kpetrow/gists{/gist_id}","starred_url":"https://api.github.com/users/kpetrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpetrow/subscriptions","organizations_url":"https://api.github.com/users/kpetrow/orgs","repos_url":"https://api.github.com/users/kpetrow/repos","events_url":"https://api.github.com/users/kpetrow/events{/privacy}","received_events_url":"https://api.github.com/users/kpetrow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-09T20:15:50Z","updated_at":"2018-05-09T20:15:50Z","closed_at":null,"author_association":"NONE","body":"These targets are giving me the run around.    But basically the issue i see is that ray intersect should make the target null if no intersect is found.  Instead it returns unchanged target if no intersect is found.  This makes it impossible to tell if target was the same or just not found or defeats the purpose of re-using target, since it has to be cleared all the time.\r\n\r\n```\r\n var sphere = new THREE.Sphere( new THREE.Vector3(0,0,0), 5 )\r\n var ray = new THREE.Ray(new THREE.Vector3(0,10,0), new THREE.Vector3(0,1,0));\r\n var target = new THREE.Vector3();\r\n ray.intersectSphere(sphere,target);\r\nconsole.log(target); // p {x: 0, y: 0, z: 0} !!!!!\r\n\r\n```\r\n\r\n[fiddle](https://jsfiddle.net/eo2bymw1/)\r\n\r\n##### Three.js version\r\n\r\n- [ ] Dev\r\n- [x ] r92\r\n- [ ] ...\r\n\r\n##### Browser\r\n\r\n- [x] All of them\r\n- [ ] Chrome\r\n- [ ] Firefox\r\n- [ ] Internet Explorer\r\n\r\n##### OS\r\n\r\n- [x] All of them\r\n- [ ] Windows\r\n- [ ] macOS\r\n- [ ] Linux\r\n- [ ] Android\r\n- [ ] iOS\r\n\r\n##### Hardware Requirements (graphics card, VR Device, ...)\r\n"}}
{"actor":{"display_login":"kpetrow"}}