Simple FPS from scratch

Hi,

I am following the FPS tutorial but instead of using the assets from the tutorial I am creating the level in C4D and adding a first person controller. I have tried attaching a mesh collider to the environment but I want the FPS object to stop falling through the floor. Should I be applying something else to the FPS object also.

Any Ideas?

Did you drag the fps controller prefab into the scene?

If you did then you only have to add a mesh collider to your meshes.
Btw. the easiest way to do that is just to add mesh colliders using the import settings of the model in the project view.

In case you broke the prefab connection. Which you probably when adding the mesh collider to your model. Then you also need to unbreak the prefab connection. Easiest is just deleting the object in the scene and dragging it in again. Or using alt drag with the prefab.

Thanks

I have checked the import settings and checked the box meshes have colliders, then dragged a new version of the level into the scene window. It still falls through the floor.
If I try to add a component using the component window it warns that “Adding a component will lose the prefab parent”
I am not sure what this means and whether I should answer yes or not.

Try it, thats a message youll understand in future.

You’re on the right track
AC

Yep, that got it.

thanks a lot all

It seems to me that everytime you introduce an object to Unity, you should go assets>create>Prefab, and drag your model onto it, then rename. Then drag object into scene. The prefab alsows you to tweak it without messing with the origional artwork. So losing a prefab parent is changing it into an individual entity, and if you want to keep that connection (Sometimes u do sometimes u dont-you might wanna create another prefab and have 2 versions of your origional work) you go Gameobject, upload changes to prefab and your back with your core connection.

Prefabs work best for instantiating(spawning-bullets etc)

Its good to mash it all up to begin with
AC