Hello! Im making a “horse maker” project for fun, and I encountered a problem that has me stumped. I wanted a menu like in spore creature creator that slides in and out, and its mostly good except the zooming doesnt feel quite right when the menu is open
Sadly cant put attachments but basically I use an orthogonal camera that slides to the right when you open the menu, I didnt like the look of perspective camera and I attached mouse wheel to the camera size so I can zoom in and out, obviously because the model is not in the middle of the screen it zooms in its hind which just feels wonky from a players perspective I think. I tried moving the camera with zoom (in z) but it didnt work well, the movement and zoom were obviously unsynched and couldnt get it to work right. Tried changing to perspective, didnt like how it looked. Tried “look at” but it just kind of changed the camera rotation so it looked from above the horse and the zoom worked the same way, which was to be expected.
At this point I dont know if what Im asking is actually impossible and have to give it up, I searched through spore footage and no lightbulbs were lit.
So if someone knows how to replicate the look of the model going to the side to make way for the menu while keeping zoom focused on it itd be great. If you think its impossible, please tell me im losing my mind lol
Sure, heres my video showcasing the “problem” and my code (albeit its a bit embarassing to share since im so new at this haha):
extends Node @export var pivot_node: Node3D @export var target: Node3D @export var camera: Camera3D @export var sensitivity := 0.01
@export var zoom_speed := 0.5 @export var min_zoom:= 1.0 @export var max_zoom:= 5.0 @export var max_zoom_offset := .01
@export var pan_speed := 0.001 @export var max_pan := .5
var pivot = 0.0
var zoom := 4.
var zoom_offset := .001
var rotating := false
var panning := false
var camera_default_zoom: float
var pivot_default_rotation: Vector3
var camera_default_position: Vector3
var camera_default_menu_closed: Vector3
var camera_default_menu_opened: Vector3
Thanks but I actually found a solution, instead of moving the camera Im using a subviewport with a viewport container with clip contents and I move that, thank you anyway!!!