>>>>> "Chris" == Chris Coat <[email protected]> writes:
Chris> Here is my problem, still for the 3D view, I can have the Chris> location of the frame but there is the landmark of the view that Chris> can be moved, so I need to apply a transformation to the input Chris> (touch) coordinate like it is done with the mouse coordinate Chris> input. I don't know if I'm clear. Translation of mouse (x/y) coordinates to world coordinates (x/y/z) isn't straightforward because the mouse click location doesn't uniquely determine a point in the world; instead, you can imagine the mouse shooting a ray (the "pick ray) through the world, a ray that crosses lots of points and may intersect multiple agents. If you need to determine what turtles, patches, or links the user is pointing to, the code for that is in `org.nlogo.gl.render.Renderer.performPick`. Or, if you want to see the math that's involved, in order to do similar calculations yourself, see the implementations of the methods that `performPick` calls. -- Seth Tisue | Northwestern University | http://tisue.net developer, NetLogo: http://ccl.northwestern.edu/netlogo/ -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
