This might sound confusing, but I want this red part to always be behind the transparent blue part, no matter what size or rotation.
I’ve tried doing something like
Sorry I might of made this sound alot simplier than it is, What I’m making is an NPC who will take cover and find a wall to go behind, im placing a wall and making a script check if the wall is good enough to hide behind.
the parts you see behind the transparent wall facing the large brick determines if the wall is good enough to hide behind.
Also the parts behind the wall are always facing towards the gray brick you see infront of the transparent wall. just said this to make it more clearer if your wondering why the rotation seems a bit weird for the parts behind the transparent wall.
Can you send us your current code and explain directly what you need? I don’t understand! @leuasde1 has given a solution to the original problem proposed - please explain it!