I’m probably being really stupid but for the life of me i cant figure this out and i know its simple.
I need to get the line trace on the corner of my box that is physical, ive used location vectors to work out the corner if the box hasnt rotated how do i add the rotation so the line trace moves with and stays on the corner of the box?
You don’t say how exactly you want the trace to extend out from the box, but you probably want to multiply your offset vector by the box’s rotation converted to a vector before you add it to the start location. That way the offset vector ‘turns’ along with the object. Also people usually use the forward vector for line traces not the up vector, unless you’re trying to see what’s above you and not in front of you.