Can't get angled object to look at moving object

So, this probably is pretty simple but I can’t seem to figure it out.

I have a projectile launcher which is an empty game object and is on an angle pointed upward.

I also have another moving object that translates and rotates around.

What I want to do is have the projectile launcher rotate at a certain rotation speed to face the target.

I can get it to rotate and face the target, but the problem is that it stops being on an angle and reverts to World Space rotations for the x and z, and then just rotates around the y axis.

Here is the part of the code that I believe I need to change:

myTransform.rotation = Quaternion.Slerp (myTransform.rotation, Quaternion.LookRotation(target.position - myTransform.position),rotationSpeed * Time.deltaTime);

Any help would be greatly appreciated! :slight_smile:

Thanks. I found a way around it. Instead of having the empty game object angled, I had it oriented regularly and then just instantiated the object on an angle. Not sure why I didn’t just do that before!