Drag camera/view in a 3D world
- by Dono
I'm trying to make a Draggable view in a 3D world.
Currently, I've made it using mouse position on the screen, but, when I move the distance traveled by my mouse is not equal to the distance traveled in the 3D world.
So, I've tried to do that :
Compute a ray from mouse position to 3D world.
Calculate intersection with the ground.
Check…