Hello, I would like to implement a camera control system similar to google maps - moving the camera smoothly by dragging the mouse and zooming using the scroll wheel. I have tried out a bunch of different ideas - moving the camera directly, moving an object which the camera would follow, but I still feel like I am missing something. When I move the camera directly I am unable to apply smooth damping, when I move the object I am unable to smoothly zoom in/zoom out due to the set follow offset of the Transposer. What would be the best way to approach this? The camera is in 3D space and is tilted by 45° along the x axis (we are using 2D billboards in a 3D space). Many thanks!
I would move an object and let the vcam do the damping.
You could make a complex object: the root (on the ground) which gets moved when you drag, and a child object representing where you want the camera to be relative to the root. Use the child object as a follow target. When you drag, move the root. When you zoom, adjust the distance between child and root. You never need to adjust the transposer offset.
2 Likes
Thank you for the lightning-fast reply! Your suggestion works really well, many thanks.