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 Nathan Bennett · Jul 15, 2010 at 07:27 AM · rigidbody

How to make ridgidBodies not go through the floor all the time!

hello, i have the really annoying situation where my ridgid body does nothing apart from go through the floor? i've tried everything, the only thing the ridgid body interacts with is another ridgid body. what to do?

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

5 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by cncguy · Jul 15, 2010 at 10:51 AM

If your floor is a surface (I.e. A plane or mesh with no thickness and your object is small in comparison to it's speed) then you may find making your floor a solid mesh will help. Ie if your floor is a plane then make it a box enclosing some volume or at least use a box collider. If your floor is a mesh then close your mesh to enclose some volume and use a mesh collider with that mesh.

Ps this is assuming you have added a collider to your floor and are having problems despite this.

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
1

Answer by runevision · Jul 15, 2010 at 08:12 AM

It is unclear from your question whether your rigidbody falls through the floor always (as if the floor is not there) or only in some situations (like when it's moving fast).

If it happens always, are you sure you have a collider on the floor?

If it only happens sometimes, you can try to make the fixed time-step smaller under Edit -> Project Settings -> Time

If/when you use Unity 3 there is also a new collision mode that can prevent objects going trough each other without needing to make the physics time step smaller, though it comes at a little performance cost.

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 Daniel 6 · Jul 15, 2010 at 07:47 AM

Decrease the fixed time step under Edit->ProjectSettings->Physics.

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 Nathan Bennett · Jul 15, 2010 at 08:04 AM 0
Share

theres no fix time step in Physics. i searched through the menu and there's a fixed time step in the time settings

avatar image StephanK · Jul 15, 2010 at 08:32 AM 0
Share

That's the one.

avatar image
0

Answer by Nathan Bennett · Jul 16, 2010 at 05:45 PM

i had to restart all over agin. seems to be a glitch with loading the project. afterwards (now) i'm fine. just make sure to have a collider on the floor (not a mesh collider) and to have a collider and rigid body to your object you want to effect with gravity.

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 GregoryFenn · Mar 02, 2018 at 05:40 AM

I found using a plane for my ground rather than a wide cubiod worked best. I guess the bug was something to do with the mesh collider.

Note that my method (intuitively) is - build rigid body objects on or just-above the plane - initalise all Rigidbodies above eh plane with gravity turned on - When a object’s trigger collider enters the plane, or whatever. Set it’s gravity off. - Turn the gravity on after a jump action, or anything like that

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

1 Person is following this question.

avatar image

Related Questions

rigidbody addforce behaves different every time 2 Answers

climbing the hill? 1 Answer

Rotating a Rigidbody with Physics 1 Answer

collision not working at high speeds 3 Answers

Instantiating two rigidbody at a time 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