Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 /
avatar image
0
Question by RuneyWolf · Aug 20, 2013 at 03:02 AM · physicscolliderterrainmesh

How do i prevent an imported Mesh from falling through Terrain?

I created a pig in 3DS max and exported it as a .3ds file. I then imported it to Unity and brought into my scene from the assets menu.

Everything was going smoothly(for once) and I applied a rigid body to the mesh as a whole. Whenever i press play it falls through the terrain. I have Generate colliders toggled 'ON' and have tried applying primitives to all parts of the mesh, and using a standard mesh collider. Nothing seems to work. I'm very new to Unity, having less than 2 hours of experience with the software. I'm not using the pro version or any extra features.

Can anyone explain in depth how I can fix this? Please be as specific as possible when answering as I am very, VERY new with Unity.

Thanks in advance.

Comment
Add comment · Show 2
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 getyour411 · Aug 20, 2013 at 04:15 AM 0
Share

Check that your pig is actually above the ground, try raising it way above and verify it falls down and then through.

avatar image gump74 · Aug 20, 2013 at 05:41 AM 0
Share

Does the floor or terrian have a colider on it? if the pig does but the floor does not then the pig will fall right through the floor or terrain because the collider will not sense a collision with the floor.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by duclaw · Aug 20, 2013 at 08:24 AM

set you mesh collider to convex, you will see it in the inspector panel by the right-hand side and also check if one of the components(rigidbody, collider or terrain) is set to isTrigger, it is also in the panel

Comment
Add comment · 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 RuneyWolf · Aug 21, 2013 at 03:04 AM 0
Share

I've tried all these suggestions and still no luck. Anyone else have any ideas?

avatar image
0

Answer by aldonaletto · Aug 21, 2013 at 03:21 AM

As @duclaw said, a mesh collider must have Convex set, or it will fall through the Unity terrain. If you still have problems with your mesh, use a sphere, capsule or box collider instead: select the pig and click menu Component/Physics/Box Collider (or Sphere, or Capsule), then answer Replace to the question "Replace existing component?".

Comment
Add comment · 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
0

Answer by superluigi · Aug 21, 2013 at 03:24 AM

If you could add a picture of the inspector when you click on your model it would help greatly. These are just 2 of the possible solutions. In the inspector, right next to the colliders name there is a check box. Make sure its on. Now the first option on collider is "Is Trigger". If "Is Trigger" is on then it will ignore collisions so it would cause your collider to fall through the floor. In other words you want "Is Trigger" set to false.

Comment
Add comment · 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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Colliding with trees using mesh colliders 1 Answer

Returning list of Triangles, Vertices or Points by raycasting through a mesh (iPhone) 1 Answer

Mesh Collider Bounciness working only in a few areas 1 Answer

Collision Colliders - Box or Mesh for Terrain 1 Answer

3rd Person Physics not working? 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