• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Nov 20, 2014 at 01:40 AM by meat5000 for the following reason:

The question is answered

avatar image
Question by sticoRobotto · Nov 18, 2014 at 08:07 PM · physicsrigidbodyterraincharacter controllerthird person controller

How to keep rigidbody from falling through terrain?

I instantiate a prefab object into the world, and after like 10 times the objects keeps falling through the ground. Both the ground and the object have rigidbodies on them to make sure that they see eachother. For some reason the object that I am creating stops colliding with the terrain after a certain number of times. The only thing working on the falling object is gravity via rigidbody component. I do have a character with character controller and third person controller in the scene as I am performing instatiation. Any help will do.

Comment

People who like this

0 Show 17
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Landern · Nov 18, 2014 at 08:07 PM 0
Share

How fast is the object falling through going?

avatar image Elit3d · Nov 18, 2014 at 08:09 PM 0
Share

can we see some pictures or any code that you wrote so we can assist easier?

avatar image MrSoad · Nov 18, 2014 at 08:27 PM 0
Share

How thick (in terms of it's height, y axis) is the ground. If it is very thin then objects can easily push through it enough to fall through completely.

avatar image sticoRobotto · Nov 18, 2014 at 09:02 PM 0
Share

The speed of the object seems to be fairly slow, it seems to be affected only by gravity that rigidbody component applies to it. However, when it starts to shoot out in random directions, a more stronger force seems to be apply to it.

avatar image sticoRobotto · Nov 18, 2014 at 09:02 PM 0
Share

The ground is generated via the unity terrain creator, so I guess that would make the ground paper thin.

Show more comments

2 Replies

  • Sort: 
avatar image

Answer by The-Little-Guy · Nov 19, 2014 at 11:59 PM

Create the ground without a rigidbody, and place a collider on it instead. Your ground probably doesn't need to react to physics, but your object will need to react to physics so it will need a riggidbody on it AND a collider as well. You then place a Physics Material on the ground collider (which is optional) to apply either friction and/or bounciness to your player or game object.

Comment
Xain
jacksonkr
Ruslank100

People who like this

3 Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Strongfinger · Nov 12, 2018 at 02:25 AM 0
Share

I am using an imported mesh for my terrain. There's no rigid body or Physics material on it, just a mesh collider generated by script when it is instantiated and shaped using perlin noise. I still sometimes have issues when I instantiate objects above it. They fall through it, not all of the time, but sometimes. The smaller the object the higher the chance of it falling through.

avatar image Strongfinger Strongfinger · May 13, 2020 at 03:59 AM 0
Share

It's okay, I solved my problem by changing the rigid body settings on the Objects to Extrapolate and Continuous Dynamic. Having a rigid body on my terrain is also essential for using an object placement system I am using.

avatar image

Answer by sticoRobotto · Nov 20, 2014 at 01:01 AM

Cool thanks. I have removed the rigidbody from the terrain. I think part of the problem was that I was placing a rigidbody along with the Character controller, and there were two forces at work. I have removed the rigidbody from the Player gameobject. It seems to be working fine now.

Comment

People who like this

0 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image The-Little-Guy · Nov 20, 2014 at 07:39 PM 3
Share

No problem! Note: You shouldn't post comments to answers as a new answer, you should post it in the comments of the answer.

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

I can't push a Rigidbody with Character Controller 1 Answer

Rigidbody below terrain getting dragged 1 Answer

My object falls through terrain. 8 Answers

Force on Character Controller (Knockback) 4 Answers

Object Flies into Air Upon Collision, or goes through hill depending on isKinematic settings 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges