Need help with basic set up for a room.

I am trying to make a prototype of a game idea i have but I am having a hard time getting my maze to act correctly.

What I did is I made a maze using magicavoxel and saved it as an obj file. I desired for the test I would not use any textures just yet. my issue right now is that the first person controller i made fall threw the entire maze. And i tried fixing that but now the controller stands on top of the maze. I removed the floor of the maze to see if that was the issue and made it a simple plane. same issue except I can get the controller to not go threw the plane but he walls threw the walls like its not even there.

Am I trying to tackle the maze incorrectly? Is the file type the issue? Do I need each wall to be a separate object for this to work? Is there a tutorial out there that goes over basic do’s and don’t of making a 3d environment in unity?

You need to add a non-convex “mesh collider” component to your maze object. The objects and the player controller need to be on the right layers. What the right layers are depends on your physics settings for the layer collision matrix. Normally having all on the default layer should be fine if I remember correctly.

You should read this:

No.

No.

1 Like

I will try this and see if this fixes my issue. Thank you!

1 Like

That worked! I thought for a moment the issue was the floor being part of the model but that worked perfectly!

Thank you for your help! I can now start to work on the prototype!

2 Likes