• 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 Eilfennol · Aug 01, 2018 at 05:53 PM · rigidbodytransformfalling-through-floor

Object falling through floor

I have a rigidbody object built via probuilder in Unity that once I move it via transform while on the ground it will eventually slip through the ground. I have a box collider on it and all the proper mesh components on it as well. The ground is a large 3d cube with all the mesh components and box collider. If you need anymore info let me know.

Thanks

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 David_Rios · Aug 01, 2018 at 05:54 PM 0
Share

Are any of the box colliders trigger? And if not, may I see the rigidBody configuration?

avatar image Eilfennol David_Rios · Aug 01, 2018 at 06:02 PM 0
Share

Yeah so none of the box colliders are triggers. Here is the rigidbody config.alt text

2018-08-01-2.png (59.7 kB)

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by AShenawy · Aug 01, 2018 at 07:12 PM

In the object's Rigidbody component try switching Collision Detection to Continuous.

Comment
Add comment · Show 4 · 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 Eilfennol · Aug 01, 2018 at 07:36 PM 0
Share

It's even worse when I do that. Really don't understand why it is doing this. Do you think it has something to do with the fact I'm using a probuilder object?

avatar image AShenawy Eilfennol · Aug 01, 2018 at 07:54 PM 0
Share

It's possible but I can't be sure as I haven't tried probuilder objects yet. Could you try the same thing with a simpler geometry like a cube and see if it still happens? if it does then we know it's not a probuilder issue.

avatar image Eilfennol · Aug 01, 2018 at 07:57 PM 0
Share

I took off my own gravity I made in the scripts and used the rigidbody one. It does solve the problem of it falling through the floor but I am having other issues with collision detection like going through walls at relative high speeds even when using continuous detection. I think I'll try using the rigidbody methods to move it rather than transform and see if that helps anything

avatar image AShenawy Eilfennol · Aug 01, 2018 at 08:10 PM 0
Share

If you want to apply gravity on your objects I thinks it's better to use the Gravity parameter in the rigid body component ins$$anonymous$$d of applying your own, as it should be more in sync with the physics simulation.

As for high speed collisions, I have made bullets that bounce off walls using the continuous detection method on the bullets and worked fine. Perhaps you're moving things way too fast than needed? In any case you could move down the list to Continuous Dynamic, or set both objects colliding to Continuous and see how it goes.

For me when collisions aren't registering it's usually because my objects are moving too fast, even for a player to notice. So most cases I would reconsider whether I even need to detect collisions if things will move this fast.

EDIT: forgot to mention, you can also script your motion controls and behaviour in the FixedUpdate method ins$$anonymous$$d of Update. FixedUpdate is the one where all physics simulations take place.

avatar image
0

Answer by ThePhantomGoat · Aug 01, 2018 at 06:29 PM

make sure that a ridgid body is attatched to the object and that it is dynamic, then raise it a little off of the ground and play (this worked for me)

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 Eilfennol · Aug 01, 2018 at 06:46 PM 0
Share

What do you mean exactly by 'dynamic'?

avatar image AShenawy · Aug 01, 2018 at 07:14 PM 0
Share

Dynamic rigid bodies are in Physics2D only. 3D physics objects don't have a Dynamic option.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

134 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 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 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 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 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 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 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

Which way of achieving player control is better - rigidbody functions or transform functions? 0 Answers

Rigidbody Sink into BoxColider 0 Answers

How to lock X rotation; broken script 0 Answers

Simple - Blocking movement 1 Answer

Problem with rotating a rigidbody 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