raycasting throught the back of plane

I’m using planes to create room that contains items the player will selected and move around. the camera for the most part will be outside of the wall which is where the ray cast is coming form.

How do i get the ray cast to pass through the wall when the back of the plane is facing toward the camera. should i use a relative point or is the better/ simpler way.

Unless the plane is 2-sided, the ray will pass through the ‘back’ of the plane without hitting it. If you are using 2-sided planes then try a 1-sided plane instead.

If the walls are one-sided, then you don’t have to do anything. Raycasts only work on front-facing surfaces, so they will “pass through” the back side of a one-sided surface.