When I try to use locators as inputs to 3D graphics, I end up not being able to rotate 3d graphics. Clicking on the graphic moves the nearest locator rather than the graphic. Switching to a collection of 2D sliders works in a pinch, but does not achieve the desired effect. Here is an example:
Manipulate is like a set-piece dynamic display. It tries to be very versitle but for most custom dynamic presentations it becomes a pain-in-the-neck. It is better to learn how to construct your own dynamic presentations. Here is more direct code for your display:
You could use DynamicModule, but it really isn't necessary here. The Locators are confined to the lhs plot and not imposed on the entire display. In the code above I bypassed calculating the v variable you used. Let's reintroduce v. Quite often we might have a set of primary dynamic variables, such as pt1 and pt2 here, which are manipulated by the mouse or sliders or other dynamic elements, and a set of dependent dynamic variables that depend on the primary variables, such as v here. We can handle this situation as in the following code. Here we use the two argument form of Dynamic and when a primary dynamic variable is adjusted the routine calcAll is called to calculate all the dependent quantities (only v in this case). I've also made some stylistic changes to the display.
> When I try to use locators as inputs to 3D graphics, I end up not > being able to rotate 3d graphics. Clicking on the graphic moves the > nearest locator rather than the graphic. Switching to a collection of > 2D sliders works in a pinch, but does not achieve the desired effect. > Here is an example: