From: Stef M. <s.m...@ru...> - 2008-12-05 12:33:12
|
thanks Bruce, Bruce Sherwood wrote: > The general case is complicated, but it might not be too difficult in > a particular situation. From the documentation on mouse events: > > 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. > > I'm afraid that it's up to you to use these tools; your question is > not a simple one. 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. cheers, Stef > > Bruce Sherwood > > Stef Mientki wrote: >> hello, >> >> probably another simple question (for those who are known with >> vector algebra), >> how do I determine if I click in the corner region of a box or >> somewhere on the middle. >> >> the idea is that dragging, >> - should rotate the box if the start drag is in the corner >> - should move the object is hit some where in the middle >> >> thanks, >> Stef Mientki > > Het UMC St Radboud staat geregistreerd bij de Kamer van Koophandel in het handelsregister onder nummer 41055629. The Radboud University Nijmegen Medical Centre is listed in the Commercial Register of the Chamber of Commerce under file number 41055629. |