cancel
Showing results for 
Search instead for 
Did you mean: 

Door Colliders and Visibility

oscar.t
Member

How can a door with a collider only be visible to players after they enter a room, while also allowing other players to enter through the same entrance? Like in Spy School when players reach the finish line.

1 ACCEPTED SOLUTION

Accepted Solutions

Those are planes. The easier way to reproduce this technique is by adding a plane to the world (from the shapes menu), and place in a way that it looks like a wall. Now walk towards it from the side that is visible and you'll notice that it's collidable. Now go around it; first thing you'll notice is that it looks invisible. Also, walking in that direction will not stop you from passing through it. This happens because faces are only collidable from their normal side.

Upcoming Events:
Build with a Mentor: Custom UI Thursday 3/20 at 5:00 PM PT Register

March calendar of all Mentor Workshops and Office Hours

View solution in original post

3 REPLIES 3

PigeonNo12
Mentor

Hi @oscar.t , can you share more details about this specific scenario please? Are you referring to the door gizmo or a shapes/trimesh door? If you can share an image of the particular location of Spy School example, that would help understanding the context.

Upcoming Events:
Build with a Mentor: Custom UI Thursday 3/20 at 5:00 PM PT Register

March calendar of all Mentor Workshops and Office Hours

I'm referring to a shapes/trimesh door, it only appears for players once they enter the room. 

 

door collider off.png

When player hasn't entered room: the door is not visible with door collider off.

door collider on.png

When player enters a room: the door is visible with door collider on. Players who haven't entered do not see the door, and may go into this room.

Those are planes. The easier way to reproduce this technique is by adding a plane to the world (from the shapes menu), and place in a way that it looks like a wall. Now walk towards it from the side that is visible and you'll notice that it's collidable. Now go around it; first thing you'll notice is that it looks invisible. Also, walking in that direction will not stop you from passing through it. This happens because faces are only collidable from their normal side.

Upcoming Events:
Build with a Mentor: Custom UI Thursday 3/20 at 5:00 PM PT Register

March calendar of all Mentor Workshops and Office Hours