How to trace in local (relative) coordinates of an actor ?

From what I understand tracing is done in world coordinates. What if I need to trace in local coordinates (actor’s X axis for example). How would I do that ?


You created something like actor with rotating components? I have in mind only “very fake” traces like comparing components relative locations…

Rotate the trace start and end in your actor’s local space by the actor’s rotation and afterwards add the actor’s location to the rotated vectors. Do you also only want to hit components of that actor? If so replace the trace by a multitrace and check for each hit component if the owner of that component is equal to your actor.