From: Bruce S. <Bru...@nc...> - 2008-12-05 03:26:34
|
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. 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 |