tcobbs / ldview

Real-time 3D viewer for displaying LDraw models
https://tcobbs.github.io/ldview/
GNU General Public License v2.0
87 stars 17 forks source link

Use shift key to accelerate camera in walk and fly modes #45

Open mjhorvath opened 3 years ago

mjhorvath commented 3 years ago

It would be nice if camera movement were faster in walk mode when holding the shift key. Thanks.

mjhorvath commented 3 years ago

I guess this could be applied to fly-through mode as well.

tcobbs commented 3 years ago

The camera motion is supposed to take into account the frame rate, and adjust accordingly so that you get reasonable motion at any frame rate. Unfortunately, this doesn't work right, and I don't know why. If the frame rate is extremely high, the camera moves too fast, and if it is low, it moves too slow. As an aside, shift dragging moves the light source.

mjhorvath commented 3 years ago

Sounds like you maybe have a negative value flipped somewhere. I.e., somewhere a -1 should be 1 and a 1 should be a -1.

You could limit the shift behavior to key presses and not change things for the mouse.