Timeline for Raycasting mouse coordinates to rotated object?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 30, 2015 at 18:00 | vote | accept | SPL | ||
Dec 10, 2012 at 14:53 | vote | accept | SPL | ||
Dec 10, 2012 at 14:53 | |||||
Dec 10, 2012 at 14:50 | vote | accept | SPL | ||
Dec 10, 2012 at 14:50 | |||||
Dec 7, 2012 at 8:31 | vote | accept | SPL | ||
Dec 7, 2012 at 8:31 | |||||
Dec 4, 2012 at 14:53 | comment | added | SPL | I tought too... I got that after a bit of looking that the segment is a normalized vector for a castray but thanks for explaining it furtherr | |
Dec 4, 2012 at 14:31 | comment | added | House | Oh, I thought you said you knew how to cast a ray. The above code uses a segment, instead of a ray (just means it has a finite end which is nice for defining a maximum pick distance). Just take the camera's position and direction to make a segment. The position is the beginning of the segment, and the direction (scaled to whatever your picking distance is) is the other end of the segment. | |
Nov 30, 2012 at 17:31 | vote | accept | SPL | ||
Nov 30, 2012 at 17:38 | |||||
Nov 30, 2012 at 16:29 | history | answered | House | CC BY-SA 3.0 |