• 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 Daz · Sep 05, 2010 at 10:51 AM · physicsgravity

Rigidbody still falls without gravity.

Hi. I have some objects that I need to be rigidbodies so that i can add forces to them, but they always fall down out of view, even if Use Gravity is unchecked. Have also tried adding "rigidbody.useGravity = false;" to the script, but this does nothing either. Just seems like every rigidbody has gravity no matter what, how can I disable it? Absolute beginner here so any help greatly appreciated. Thanks muchly.

Comment
Add comment · Show 5
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 spinaljack · Sep 05, 2010 at 12:48 PM 0
Share

It's because someone is pushing them down. You probably have another rigid body either touching them or connected to them. You can make them stay on the spot with fixed joints or similar

avatar image Daz · Sep 05, 2010 at 02:05 PM 0
Share

Ahh yes that explains it, thanks for helping, guess I will have to think of a different strategy for this one.

avatar image Wolfshadow · Aug 18, 2015 at 01:18 PM 0
Share

You could make them kinematic in spots

avatar image MobinYaqoob · Aug 18, 2015 at 01:35 PM 0
Share

Just atach a script which either make them kinematic or false there use gravity at run time

avatar image RedHedZed · Aug 18, 2015 at 05:04 PM 0
Share

Other users have mentioned making them kinematic and this would also be my suggestion.

Alternatively, if there are no rigidbodies that require gravity, you could set the gravity in the Physics settings to be 0.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by zuuGee · Feb 08, 2018 at 10:49 PM

Depending on your needs you may be able to use the constraints function under the objects rigid body and lock it to a certain axis.

I would require more information to answer this better.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

What's a good way to keep a character connected to any surface -- with gravity still only going down? 3 Answers

walk on walls (third person) 0 Answers

Change particle bounce relative to the speed of the GameObject colliding with them? 1 Answer

2D trajectory prediction around planets 1 Answer

Airplane Stall 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges