so i have this 3d object and i want to be able to manually set it’s ‘up vector’ and the angle around that vector that it is facing. i’ve been trying combinations of setting basis axes and multiplying transforms and i can’t figure it out. if i know the vector that should be ‘up’ and i have a scalar to keep track of the angle around that vector that ‘forward’ is, how can i set the rotation with these two quantities without resetting the position?
ah, no. unfortunately 3D rotation is a four dimensional problem, while 2D rotation is a one dimensional problem. i do actually know how i want my object to be rotated hence the vector and scalar, i just literally don’t know what the syntax is in gdscript
I’d suggest creating a new topic with a more specific title - something like “how to set angle using Vector3” so that people with more 3D experience than me will join in.
Does look_at work for you? The rotate function allows you to define a vector around which to rotate by an amount. I am having a hard time visualizing what constraints you are facing. What is your end goal here?