Shoot Raycast tought the side of rotating object.

I have an object that is always rotating. I want to send a Raycast forward Like Vector3.forward but when I spin object I want the objects forward to change so it is relative to the object and not to the world.

I am using this code to rotate the object

        transform.Rotate(new Vector3(0, RotationSpeed, 0) * Time.deltaTime);

use transform.forward for your raycast.