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 /
  • Help Room /
avatar image
3
Question by scottstephan · Jan 17, 2014 at 08:25 PM · 2dgravity

Gravity seems "slow".

Hey all,

Just started using the new 2D features in Unity- They're great! However, I seem to have an issue. When I add a rigidbody 2D, the default gravity seems very, very low. So I end up setting the scale to something like 10 or 15. This feels better, but then my jump code gets all wacky because I have to have crazy amounts of force to account for the gravity.

Is this correct? Is default gravoty just really low? Gravity is set to default value in the project settings. I just watched 5 or 6 tutorials and no one else seems to have this issue.

Comment
Add comment · Show 4
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 MadJohny · Jan 17, 2014 at 09:07 PM 0
Share

I had this issue with the 3d physics, had no problems with 2d physics yet, but I do remember that sometimes my 3d objects looked like they were falling in slow motion

avatar image GraviterX · Jan 17, 2014 at 09:09 PM 0
Share

Try setting the max fall speed ins$$anonymous$$d of gravity

avatar image HonoraryBob · Feb 05, 2016 at 07:39 PM 0
Share

In addition to what others have said, sometimes a slow fall speed is due to a high drag setting: even 10 on a small object slows down the falling rate enormously, which doesn't seem right. It's made more frustrating by the fact that sometimes a high drag setting is needed to prevent objects from getting shoved too far by collisions. $$anonymous$$aybe I just have other settings wrong, I don't know; but it's been difficult to get things to behave correctly in certain circumstances.

avatar image luislodosm · Aug 11, 2016 at 01:10 PM 0
Share

One procedure:

  • Assets > Create > Sprites > Square.

  • $$anonymous$$ake the scale of the square 0.5 x 2 x 1.

  • The main character should have aprox. this size to receive a proper gravity.

4 Replies

· Add your reply
  • Sort: 
avatar image
12
Best Answer

Answer by scottstephan · Jan 17, 2014 at 10:48 PM

This was actually my fault- I was overwriting the rigidbody2D's velocity.y with my own without realizing it. D'oh! Works perfectly like this:

characterVelocity = new Vector2 (xMov * speed, rigidbody2D.velocity.y); // where y is gravity rigidbody2D.velocity = characterVelocity;

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 cryptex. · Dec 24, 2015 at 02:30 AM 0
Share

Thank you so much for the solution. I falled into same mistake :)

avatar image GallopingGargoyle · Dec 09, 2016 at 10:50 PM 0
Share

Same bug in my code causes the very weak gravity issue. Thanks scottstephan.

avatar image Haruogawa · Jul 07, 2021 at 09:10 AM 0
Share

it's possible to post script

avatar image rage_co Haruogawa · Jul 07, 2021 at 12:11 PM 0
Share

cmon man its a 7 year old answer, no need to be salty

avatar image
15

Answer by thaiscorpion · Jan 17, 2014 at 09:15 PM

The reason is because Unity Physics Engine uses 1 unit as 1 meter. So if your object would normally be half a meter but in game you give it a scale of 50, then the speed of gravity will look very slow. If you need to keep a high scale on the items you can just change the gravity foce according to your scale size.

In Unity:

 Edit -> Project Settings -> Physics

and set the Y value of the Gravity Vector

Comment
Add comment · Show 1 · 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 burnout156 · Feb 05, 2018 at 04:42 PM 0
Share

thanks, it's work fine

avatar image
4

Answer by Eric5h5 · Jan 17, 2014 at 09:18 PM

"Slow" gravity means your objects are scaled wrong (which applies to 3D physics as well). For the default gravity, with a gravity scale of 1, to look "right" for probably most objects, they should be 1-2 units in size. A 100 pixel sprite for example would have the pixels-to-units setting as 100, so it ends up with a scale of 1.

Comment
Add comment · Show 1 · 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 Recluse · Feb 19, 2014 at 11:31 AM 0
Share

It doesn't seem to be a problem of scale for me -

I just added the default Unity cube to my scene and added a non-kinematic rigidbody to it.

Then I pushed it off a cliff using a kinematic rigidbody 'pusher'.

The cube continues out over the abyss in front of the pusher like Wile E Coyote, until it finally begins to fall when the pusher stops.

Gravity is set to -10.

avatar image
0

Answer by idiot333 · Feb 24, 2015 at 08:10 PM

I also had the same problem but this was my fault too. my object was falling but also it was moving upward. hence the slow 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

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

31 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

Related Questions

"Is Kinematic" required? 1 Answer

Overlapping two dynamic rigidbodies (2D) 0 Answers

HOW TO ADD GRAVITY TO A OBJECT? 2 Answers

How to keep upward momentum after reversing gravity 0 Answers

Changing gravity depending on character/camera rotation 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