- Home /
How do you stop objects from floating into space?
Hello,
I am a beginner at Unity and started to make my first 3D project with it. It's an FPS game so I placed a First-Person controller in the world but when I ran the program, everything I place in the world(except the terrain) floats slowly upward into space. Any help would be very appreciated!
Thanks.
Does everything I place in the world have a rigidbody? If so, set rigidbody to use gravity or is kinematic.
Answer by NAKAS · Feb 17, 2013 at 09:45 AM
The problem is usually caused because there is a rigidbody on the terrain and while it looks like everything thing is floating it's actually the terrain falling. Due to lack of other reference points it looks like everything is floating away. Fix it by removing the rigidbody.
Yes I'm pretty sure your right. The terrain is falling, but I don't know how to remove the rigidbody.
You might want to work through more official Unity tutorials, then. That's a basic thing. You click the object then remove the Rigidbody component using its right-click menu in the Inspector.
I'm sorry but I don't see any "RigidBody" component.
Answer by digiben · Feb 17, 2013 at 06:58 AM
Make sure that your character controller has a rigid body and that the character (viewed in the editor view) isn't below or partially in the ground. Make sure they are at least above ground. Also like just said, check the use gravity menu option on the character controller.
Yes that's all working fine. It's just that the terrain is falling.
Answer by RyanZimmerman87 · Feb 17, 2013 at 11:46 PM
The "Rigidbody" component will be on the right hand side of your screen in the Inspector when you select that object. If their is no Rigidbody it would not be falling.
If you want the ground to float you should disable gravity and make your rigid body kinematic (both settings within the Rigidbody).
Yes I know that, I'm not stupid. But still. the terrain keeps falling