|
From: Scott D. D. <Sco...@Ac...> - 2008-12-05 17:21:46
|
Stef Mientki wrote:
> Bruce Sherwood wrote:
>> ... ray A unit vector pointing from camera in the direction of the mouse
>> cursor. The points under the mouse cursor are exactly { camera + t*ray
>> for t>0}.
>> Also note the project() function for projecting the mouse position
>> onto a given plane....
> Well the question was simple, but the solution isn't ;-)
> I think for the moment (and maybe forever) I'm going to use
> alt/ctrl/shift to differentiate between actions.
Note that a box has 6 planes (at most three visible), so you could
project onto each plane, determine if the point is on-box, and choose
the "closest" of the on-box points.
--Scott David Daniels
Sco...@Ac...
|