Turning a .obj into a Prefab?

Hello there guys. I’m kinda new to Unity. I’m a Game Cultures student, and I have a problem with my project.

Well I created a 3D Model of a planet, and I also have a scrip that will allow the player to walk around the planet (GravityAttractor and GravityBody).

Now when I use a standard Unity Sphere GameObject and apply the GravityAttractor script to it, and I apply the GravityBody script to a player (Little Capsule) everything works fine and the capsule is pulled to the sphere.

Although when I import my 3D Object ( I have tried both .fbx and .obj ) and I apply the scripts, the capsule simply goes through the 3D Object.

I’m not sure what am I doing wrong, but as far as I know. It’s the problem with my 3D Object.

Do I somehow have to turn the 3D File into a prefab? If so, could someone please guide me how to do so.

Thank you in advance.

several ways to this.

I prefer making a game object, and drag the model onto it in the scene, so it becomes a child of the new object. And then drag the parent (the empty game object created) into the projects folder.

You should always make prefabs out of models, as if anyone changes the file weird things happen on re-import. Or so I have heard. Not had the problem since I always make prefabs :slight_smile: