Simple Bullet Physics

I’m trying to create bullet physics so far i have it working in 2D space when shooting at an angle of zero i did this using the simple projectile equations now im trying to this in 3D space the only problem i have is getting the angle at which the bullet first fires to split the speed to the appropriate axis I’ve tried getting the angle between two vectors but i doesn’t seem to be working anyone have any ideas to get this right.