You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Plane and a Cube (and light). The Cube is placed behind the Plane and is wrapped within an <Interact /> Element, while the Plane doesn't do anything.
Every time the Cube gets selected it changes the color of the light into another color.
Now I noticed that even if the Plane is in front of the Cube, the ray still goes through the Plane and therefore is able to select the Cube behind, which is not what I want. The Plane should actually block the ray, so the player won't be able to click the Cube behind.
Is there some kind of prop I have to set or is there another way to accomplish this? 😄
The text was updated successfully, but these errors were encountered:
Hi there,
I have a Plane and a Cube (and light). The Cube is placed behind the Plane and is wrapped within an
<Interact />
Element, while the Plane doesn't do anything.Every time the Cube gets selected it changes the color of the light into another color.
Now I noticed that even if the Plane is in front of the Cube, the ray still goes through the Plane and therefore is able to select the Cube behind, which is not what I want. The Plane should actually block the ray, so the player won't be able to click the Cube behind.
Is there some kind of prop I have to set or is there another way to accomplish this? 😄
The text was updated successfully, but these errors were encountered: