Ignore rotation when calculating direction?

Welcome to the Forum! Read the forum guidelines to see how to properly ask a question and some good information on making a good post.
To answer your questions we need a more detailed info about the project. Please describe what the hardware do you use. How do you intend to determine a direction of the arduino?