Better precision for rotation tool

Hey,

I’d like to suggest an improvement to the Ctrl+5 rotation tool. At the moment, rotating molecules is quite cumbersome and frustrating—especially for small ones like water or ammonia. As a result, building more complex structures, where specific atoms need to interact, becomes extremely difficult.

I guess I’m not sure what you’re specifically asking because there are already a few ways to make very precise rotations, etc.

  • manual manipulation including rotations and translations by specific amounts
  • keyboard strokes to translate or rotate by small amounts

Is there something more you want? Can you walk me through a case - I guess for intermolecular interactions?

I think part of what is causing the frustration is that when you drag the mouse to rotate a molecule the direction you’ll be rotating in is rather unpredictable. It is also not possible to click and drag and only rotate in one direction, which is likely something that @mandaro is running into.

IIRC, Avogadro 1 had a little set of arrows pop up when you were clicking and dragging that made it more visually apparent what was happening, but I could be misremembering it.

Yes. I have the start of a port for those to modern OpenGL, but it wasn’t nearly ready for 2.0. I’ll see what I can finish up for 2.1.

I also noticed that while the navigation tool has a set of options for translation and rotation of the camera using the keyboard, the manipulate tool only has translation for some reason. That’s an easier fix - copy all of this to work in the manipulate tool: