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
0
Question by DanRP · Jan 08, 2014 at 06:41 PM · 2dphysicsgravity

Why is there no gravitational acceleration with Unity 4.3.1 2D?

I've just started using the 2D physics engine in Unity 4.3.1. I've setup several objects with Rigidbody2D some with CircleCollider2D and some with PolygonCollider2D.

What I'm noticing is that, when the objects fall, they appear to fall at a constant speed. In other words, they don't appear to gain speed as they fall like they would in the real world.

Linear Drag is set to 0. Gravity Scale is set to 1.

Is this normal? What settings can I check/set to adjust this behavior?

Comment
Add comment · Show 3
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 robertbu · Jan 08, 2014 at 06:43 PM 0
Share

Not sure what you are seeing. Try this in a new, 2D project and a new scene:

  • Create a sprite

  • Add a Rigdibody2D component

  • Adjust the 'Size' on the camera so that you can see more of the scene.

  • Add the following script

  • Hit Play


    function OnGUI() { GUI.Label(Rect(0,0,200,50), rigidbody2D.velocity.ToString());

    }

avatar image DanRP · Jan 08, 2014 at 07:40 PM 0
Share

I created a new project like you described. The sprite's velocity does increase as it falls until it reaches -100 and then it stays at -100. I went back to my original project to tracked the velocity of a selected sprite. It's velocity also started at 0, but very quickly (about a second) increased to -200 and then stayed at -200.

There is one big difference between the two projects. The test project has the sprite's scale set to 1 and gravity set to -9.81. $$anonymous$$y project has sprite's scale set to 100 and gravity set to -309.81.

There seems to be some sort of maximum linear speed that is set to 100 in the test project and 200 in my project. Is this possible?

avatar image robertbu · Jan 08, 2014 at 08:19 PM 0
Share

This issue of a limit has come up in several questions since 2D stuff was released. The answer seems to be changing pixels per unit for the sprites. Google "unity3d 2D maximum velocity" for a number of hits including this one:

http://answers.unity3d.com/questions/577393/unity-limiting-max-velocity-on-rigidbody.html

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

18 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

Related Questions

How can I make a game object move in parabolic motion as if it were under gravity? 2 Answers

Unity 2D distance constraint 1 Answer

Question on 2d planet gravity 1 Answer

how do i make pinball ? 1 Answer

Problems with gravity: jumping models 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