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
5
Question by Fattie · Oct 15, 2011 at 06:26 PM · physicscollidersfloorfalling-through-floorfalling-through-terrain

THIN objects can fall through the ground? (AMAZING SOLUTION)

Important .. the incredible solution proposed by Kromenak below is perfectly correct.

The final, total solution to this huge problem, is that your ground must be "thick".

Looking at say a football field, I simply set the box collider that makes the ground, to be 100 meters "thick" (i.e. "into the ground" if you will). This absolutely and totally solves the problem. A truly brilliant solution from Kromenak. Thank you Kromenak!


Hello experienced developers ...

I've noticed THIN (ie, flattish) objects -- imagine say a "plank" -- can fall through the ground.

It makes no difference if the ground is a mesh collider or just a big flat collider.

Make a ground surface say about an acre big. Make some "planks" that are typical plank size .. 2 meters long, 0.5 meters wide, and a few inches thick. Obviously add a rigidboy, box collider, realistic weight, physicmaterial, etc etc.

Let them drop down at different angles from a meter or two.

If they are too thin -- they very often MAKE THEIIR WAY THROUGH the floor and fall away to hell.

Typically, if you make them THICKER -- more than, say, oh, 10 cm or so -- it tends to stop the problem.

This is all quite problematic if you have flat, or thin, things you want to knock about.

What's going on here? Do any experts, drunk or sober, know what this is all about? Is it something every experienced developer knows, and you just have to live with it??

If you have actually lived with this specific problem, please write back ! Cheers and thanks....

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

2 Replies

· Add your reply
  • Sort: 
avatar image
15
Best Answer

Answer by kromenak · Oct 16, 2011 at 09:35 AM

This is actually a well-known issue in all of game development that has to do with the way that physics are simulated in games. It is sometimes called the "Bullet Through Paper" problem.

This problem occurs because physics in games is not actually continuous. The game is taking a series of snapshots of your scene (sometimes called "physics steps") and using those snapshots to see if things are colliding. If, in a snapshot, two objects are colliding or overlapping, the physics system can take the correct action and stop the objects from going through one another.

However, a common problem for fast-moving or thin objects is that on one step, the moving object will be falling towards a surface, but then after the object's next position is calculated from its velocity, it has completely moved past the floor or other object. The physics system never sees a snapshot with the two objects touching, so it never thinks they collided.

To fix this, you can use the built-in Unity tools - particularly, setting a moving object like your plank to "Continuous Dynamic" collision in its rigidbody settings, and setting the floor to "Continuous" collision. If you are using mobile devices though, this will probably be too expensive. In those cases, you can also just use thicker objects - if you need to use a thin plank, you can also make the floor thicker.

Another thing to try is to change the fixed timestep so that the physics system takes more snapshots, thereby making it less likely for this to occur. This will also cost more performance, though.

Comment
Add comment · Show 5 · 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 Fattie · Oct 17, 2011 at 12:28 PM 0
Share

@$$anonymous$$romenak you are a genius. You are a genius. You are a genius. You are a genius. You are a genius.

avatar image Fattie · Oct 19, 2011 at 10:41 AM 0
Share

@$$anonymous$$romenak since another day has gone by I just wanted to point out that you are still a genius. You are still a genius. You are still a genius!

avatar image Uniquesone · Oct 19, 2011 at 11:46 AM 3
Share

Well just read the documentation from unity. Its all described there

avatar image tneshi · Feb 25, 2012 at 09:28 AM 1
Share

Can a terrain be set thicker?

avatar image attiksystem · Oct 17, 2012 at 02:30 PM 0
Share

Thick floor did the job for me! Thanks.

avatar image
2

Answer by sam32x · Oct 16, 2011 at 11:32 AM

or you can make the collider thicker

Comment
Add comment · 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 Fattie · Oct 16, 2011 at 02:35 PM 0
Share

For sure -- but generally you can't do that if it's a "real" object in the game.

avatar image Meltdown · Feb 25, 2012 at 10:25 AM 1
Share

I think he means make the ground collider thicker, which works.

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

7 People are following this question.

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

Related Questions

Is it possible to make a Mesh Collider thicker? 2 Answers

Physics artifacts on terrain seams 0 Answers

More realistic physics? 0 Answers

When and when not to use kinematic rigidbody? 2 Answers

2D 360 degress platformer example needed 0 Answers


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