payload: {"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/17941","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/17941/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/17941/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/17941/events","html_url":"https://github.com/mrdoob/three.js/issues/17941","id":523881182,"node_id":"MDU6SXNzdWU1MjM4ODExODI=","number":17941,"title":"Wildly incorrect values returned by Ray.at() and Ray.intersectSphere()","user":{"login":"JoshuaCWebDeveloper","id":6536826,"node_id":"MDQ6VXNlcjY1MzY4MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/6536826?v=4","gravatar_id":"","url":"https://api.github.com/users/JoshuaCWebDeveloper","html_url":"https://github.com/JoshuaCWebDeveloper","followers_url":"https://api.github.com/users/JoshuaCWebDeveloper/followers","following_url":"https://api.github.com/users/JoshuaCWebDeveloper/following{/other_user}","gists_url":"https://api.github.com/users/JoshuaCWebDeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshuaCWebDeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshuaCWebDeveloper/subscriptions","organizations_url":"https://api.github.com/users/JoshuaCWebDeveloper/orgs","repos_url":"https://api.github.com/users/JoshuaCWebDeveloper/repos","events_url":"https://api.github.com/users/JoshuaCWebDeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/JoshuaCWebDeveloper/received_events","type":"User","site_admin":false},"labels":[{"id":6908296,"node_id":"MDU6TGFiZWw2OTA4Mjk2","url":"https://api.github.com/repos/mrdoob/three.js/labels/Help%20(please%20use%20the%20forum)","name":"Help (please use the forum)","color":"cfcfcf","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-11-16T18:46:54Z","updated_at":"2019-11-16T23:14:10Z","closed_at":"2019-11-16T23:11:06Z","author_association":"NONE","body":"##### Description of the problem\r\n\r\nThe point calculated by `Ray.at()` seems very off. I'm assuming that distance `t`  refers to a length in pixels, and therefore, a `t` value of 100 on the ray (255, 255, 255) --> (0, 0, 255) would result in a point somewhere between the origin and the direction, but instead it results in the point (255, 255, 25755).\r\n\r\nMaybe I don't understand what `Ray.at()` is supposed to do? If that is the case then `Ray.intersectSphere()` is making the same mistake as I am. For a sphere with a radius of ~220 and a center at (255, 255, 255), the calculated intersection of the above ray (with an origin inside the sphere) and the sphere is (255, 255, 25755), which is quite a ways away from the sphere. :)\r\n\r\nThe below example can also be found at https://codepen.io/JoshuaCWebDeveloper/pen/MWWzxGj.\r\n```javascript\r\nconsole.log(THREE.REVISION);\r\n\r\nvar ray = new THREE.Ray(\r\n    new THREE.Vector3(255, 255, 255),\r\n    new THREE.Vector3(0, 0, 255)\r\n);\r\n\r\nvar atPoint = new THREE.Vector3();\r\nray.at(100, atPoint);\r\n\r\nconsole.log(\"atPoint:\", atPoint);     //{x: 255, y: 255, z: 25755}\r\n\r\nvar sphere = new THREE.Sphere(\r\n    new THREE.Vector3(255, 255, 255),\r\n    220.83\r\n);\r\n\r\nvar intersect = new THREE.Vector3();\r\nray.intersectSphere(sphere, intersect);\r\n\r\nconsole.log(\"intersect:\", intersect); //{x: 255, y: 255, z: 56566.65}\r\n```\r\n##### Three.js version\r\n\r\n- [ ] Dev\r\n- [ ] r110 (Not on CDNJS)\r\n- [x] r109\r\n- [x] r99\r\n\r\n##### Browser\r\n\r\n- [ ] All of them\r\n- [x] Chrome\r\n- [ ] Firefox (Not tested)\r\n- [ ] Internet Explorer (Not tested)\r\n- [x] Opera\r\n\r\n##### OS\r\n\r\n- [ ] All of them\r\n- [x] Windows\r\n- [ ] macOS (Not tested)\r\n- [ ] Linux (Not tested)\r\n- [ ] Android (Not tested)\r\n- [ ] iOS (Not tested)\r\n\r\n##### Hardware Requirements (graphics card, VR Device, ...)\r\nNone"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/554683422","html_url":"https://github.com/mrdoob/three.js/issues/17941#issuecomment-554683422","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/17941","id":554683422,"node_id":"MDEyOklzc3VlQ29tbWVudDU1NDY4MzQyMg==","user":{"login":"WestLangley","id":1000017,"node_id":"MDQ6VXNlcjEwMDAwMTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1000017?v=4","gravatar_id":"","url":"https://api.github.com/users/WestLangley","html_url":"https://github.com/WestLangley","followers_url":"https://api.github.com/users/WestLangley/followers","following_url":"https://api.github.com/users/WestLangley/following{/other_user}","gists_url":"https://api.github.com/users/WestLangley/gists{/gist_id}","starred_url":"https://api.github.com/users/WestLangley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WestLangley/subscriptions","organizations_url":"https://api.github.com/users/WestLangley/orgs","repos_url":"https://api.github.com/users/WestLangley/repos","events_url":"https://api.github.com/users/WestLangley/events{/privacy}","received_events_url":"https://api.github.com/users/WestLangley/received_events","type":"User","site_admin":false},"created_at":"2019-11-16T23:14:10Z","updated_at":"2019-11-16T23:14:10Z","author_association":"COLLABORATOR","body":"@JoshuaCWebDeveloper Please use the three.js forum if you need additional help."}}
other: {"actor":{"display_login":"WestLangley"}}