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
1
Question by shantanu1singh · Dec 21, 2011 at 06:20 AM · rigidbodygravitysphereroll

Sphere moves randomly after adding rigidbody!

Hi, I am particularly new to unity. I am currently trying to make a sphere roll down a hill slope by adding a rigidbody to it. But somehow after giving it some mass and checking the use gravity option, the sphere moves randomly during the game. Instead of falling down on the surface due to gravity it floats about randomly in the airspace. I have checked the gravity direction and it shouldn't be the problem. Any help is highly appreciated.

Thanks, Shantanu

Comment
Add comment · Show 15
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 shantanu1singh · Dec 20, 2011 at 10:49 AM 0
Share

This hill I'm referring to is on a "Terrain". Is there a need to add a rigidbody to Terrain too ?

avatar image asafsitner · Dec 21, 2011 at 09:39 AM 0
Share

No, you definitely don't want to add a rigidbody component to your terrain.

Are you applying some force to the sphere, or just let it freely fall?

Try resetting the component and see what happens. Perhaps you fed in a problematic value.

avatar image shantanu1singh · Dec 21, 2011 at 10:29 AM 0
Share

Thanks for your reply.

I am letting the sphere fall freely, no force at all. Tried resetting the rigidbody component of the sphere. No help. The sphere falls under the effect of gravity from a new position altogether. This position is random too.

As I had mentioned before on removing the rigidbody component, I find the sphere at the very same location I had positioned it. But I can't figure out what the problem with the component is.

avatar image asafsitner · Dec 21, 2011 at 12:33 PM 0
Share

Are there any scripts attached to the sphere?

avatar image Bovine · Dec 23, 2011 at 12:39 PM 1
Share

@shantanu1singh I'm no physics expert but I was reading the Unity docs in this area the other day and in there it states that there is an implicit assumption that 1 metre = 1 unit and that scaling will affect rigid bodies and their behaviour.

I would suggest you create a sphere in your 3D package of choice that is the size you want and bring this in such that its transform has a scale of 1,1,1 and then you should have the sphere behave correctly with respect to physics and gravity.

If you make a sphere 20 units across however you will be seeing physics applied to a sphere that is 20 meters in diameter and how that (at whatever mass it has) reacts to gravity which I think defaults to 9.81m/s (negative Y).

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

8 People are following this question.

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

Related Questions

How to have a sphere roll/be affected by friction 0 Answers

Roll a ball around with Mobile Standard Assets First Person Controls and make image look decent on sphere. 2 Answers

Addforce.forward on a sphere object 1 Answer

Wrong gravity calculation? 2 Answers

slide sphere on a slope without rotating 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