#How To Lock The Z Axis in 3D???
15 messages · Page 1 of 1 (latest)
Can you record a video of whats happening. A still image doesnt really explain much
Yes
Sorry I completely forgot about this
Im at work, I cant download that video I'll check it out when I get home
So gun_to_mouse just returns an empty vector3
None of the code in your script actually does anything
It's alright and huh I did not know that I been look into diffrent ways to do this and I can't figure it out so far this is the only thing I'm really struggling with in my project
So I think the best way to do it
look at the mouse, but only the mouses x,y coordinates and make the z value the value of the guns origin
global_position.origin.z
I think thatd be a good place to start
Hmm alright I will try that 😁
im apparently terrible at working with vectors trying to figure out how to use vector 2 in 3d😅
i did try something that did kinda work but the issue is the rotation point is towards that top left of the view port rather then the center of the player