How to take into account the orientation of an object when using NormalID

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I’m trying to get a direction vector from the face that the mouse is targeting.

  2. What is the issue? As of right now, I am using Mouse:TargetSurface to get the normalId of the face that is being pointed at, and then doing Vector3.FromNormalId to convert it to a directional vector. The issue is that this method doesn’t take into account the orientation of the object. A rotated objects Top face will no longer be facing up, but the direction vector result will face up.

  1. What solutions have you tried so far? I really am just looking for the bit of math I have to do in order to take into account the rotation. I’m sure it’s simple, I just don’t know it. Thanks in advance!