> this examples almost does what you want - just replace the offset
> generated by the mouse position with one that reacts to the mouse when
> dragging, and you're done!
Thanks Rob, I'll try adapting it.
However, you are rotating the globe, not the camera. Shouldn't make a
difference though I suppose.
I'm also weary of this formula:
m.rotationMatrix(v.x, v.y, v.z, -Math.PI*Math.sqrt(Math.pow(mouseX -
400, 2) + Math.pow(300 - mouseY, 2))/20000);
Where does the 20000 come from? Just an arbitrary factor? I toyed with
similar expressions and never managed to accurately track a point on the
globe.
thank you for the quick reply!
Sören