Get new vector based on angle of two vectors

Sorry - I’m not saying that’s what it does completely. What I recommend is brushing up a bit on 3D math and start with the basics like points and vectors in 3d space. Leave the game alone for a moment and think simple, then once you’re able to find the solution in a simple setting then you can then tailor that toward your liking in the game. Obviously I can’t solve your problem completely without knowing all of things you have going on underneath so I apologize if what I said is not giving you exactly what you need. Anyways good luck!