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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by akajb84 · Jul 02, 2013 at 12:27 AM · collisionrigidbodyterrainfalling through terrain

After parent change, rigidbody falls through terrain

I have rigidbody objects in my game that the character can pick up (think ball, book, etc). Before the character picks it up, the rigidbody behaves as expected, it can be pushed around, and fall off objects, but it won't fall through the terrain. However after a character has picked it up and wants to put it down again, it now falls through everything.

When I pick it up, I set isKinematic to true and detectCollisions to false. After, when I'm 'letting go' I set these to false and true respectively. useGravity is always true.

The only other thing that changes, is the parent of the rigidbody. It's normally an empty game object called props unless it's being held by a character then it's parent is the right hand.

I've looked at other rigidbody falls through terrain questions, but nothing I've tried has worked.

Comment
Add comment · Show 7
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 Eugenius · Jul 02, 2013 at 09:16 AM 0
Share

What are the rigidbody's settings before you pick it up?

avatar image akajb84 · Jul 02, 2013 at 01:17 PM 0
Share

For the ball, for example, it has a sphere collider (isTrigger is not set) and the following rigidbody settings.

  • $$anonymous$$ass 1

  • Drag 1

  • Angular Drag 0.05

  • Use Gravity = true

  • Is $$anonymous$$inematic = false

  • Interpolate = none

  • Collision Detection = continuous

  • none of the freeze constraints are set

avatar image Eugenius · Jul 02, 2013 at 01:21 PM 0
Share

This beats me...Probably your right hand parent object is changing some variables to all the children... Do you parent the ball back to the empty game object? Do its settings change back as you set them up?

avatar image akajb84 · Jul 02, 2013 at 01:34 PM 0
Share

Yep, it gets parented back to the empty game object. When I watch the settings, they are all 'correct' afterwards (ie identical to those above). I've tried playing around with the settings before picking it up, to see if I could get the objects to fall through the ground, but no luck.

I've also tried looking at the velocity - in case something odd was set to send it through the ground too fast - but both velocity and angular velocity are (0,0,0).

avatar image robertbu · Jul 02, 2013 at 01:56 PM 1
Share

I tried to reproduce this yesterday, and could not make it happen. In my attempt I had issues with the object sleeping, but since your object is falling, that is not the issue. Try disabling/enabling the collider rather than setting detectCollisions.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

16 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

Related Questions

How to make a deform on a terrain with the points on a collision of rigidbody 0 Answers

Player's Rigidbody slides up terrain walls 1 Answer

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

Terrain collider failing in unity 5/17? 1 Answer

Rigidbody falling trough terrain 2 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