How to get the direction vector given a point and rotation?

So basically I have the player position and its rotation value. How can I get the facing direction so i can use that for raycast.

Thank you.

You should be able to use .forward in order to raycast in the direction you are facing.