Focus camera with mouse's icon

Focus camera with mouse 1.0.0 3D Tools 4.2 Community

Submitted by user Gustjc; MIT; 2024-05-12

Centers the camera around the mouse pointers when a shortcut is pressed.

Great for navigating 3D maps. You can point at a location in the terrain and the camera will center's where the mouse is touching that mesh.
Similar to blender's zoom to cursor position shortcut

The addon will look for collision shapes to find the mouse raycast point. If it doesn't find any, it'll use the node's AABB instead.

Shortcuts to zoom:
- Alt+Middle mouse button
- Q key

Made in Godot 4.2 but should also work on 4.0/4.1 (untested).

Used in 3D worlds.
Also works in 2D, but it's kind pointless, as it just moves the camera in 2D space.


View files Download Submit an issue Recent Edits