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 Tonyx97 · Jun 29, 2015 at 05:14 PM · physicsrigidbodygravitydrag

Where is the general Rigidbodies Drag?

Hello guys, I've created a new project today on Unity and I realized that the rigidbodies are so slow to fall for example, I've been researching and the problem is the coefficient drag BUT I can't find it anywhere... I've been searching on Physics Manager on Project Settings and I didn't find it... Could someone tell me how can I resolve this without increase the gravity? Thanks in advance.

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 Owen-Reynolds · Jun 29, 2015 at 07:09 PM 0
Share

I'm not sure there is such a thing. Doesn't each rigidbody have it's own personal drag?

I seem to recall some people complaining that personal RB drag of 0 made a bouncing ball bounce all the way back up, then even then some. Which would mean there's no secret additional source of drag.

The Intro sections mention to check scale. Not using 1 unit = 1 meter can result in slow-looking falls. How large are you objects?

avatar image fuego_see_money · Jun 29, 2015 at 07:25 PM 0
Share

I'm not going to answer this b/c I don't know for sure if it works...but I'll comment it here.

You could do it through code and drag - for example, for every object you want to fall quicker, put the tag as "RBody", then:

 public class InitScript : $$anonymous$$onobehaviour
 {
     void Start()
     {
         GameObject[] bodies = GameObject.FindGameObjectsWithTag("RBody");
 
         foreach(var go in bodies)
         {
             rb = go.GetComponent<Rigidbody>();
             rb.drag = 0;//or whatever you want it to be (play around)
         }
     }
 
 }

Then just attach the InitScript to some object in your game.

avatar image Tonyx97 · Jun 29, 2015 at 08:54 PM 0
Share

I know how drag works for each rigidbody but I mean the general drag because in Unity 4 was "Drag Coefficient" or something like that, obviously the drag of each rigidbody is 0 (http://gyazo.com/ef8486de077f49a233e6185c34fc1aec) but I don't know why is so slow...

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer Wiki

Answer by starikcetin · Jun 29, 2015 at 10:11 PM

Movement and scale are relative. Think that you are in space and have "nothing" (literally nothing) nearby you. Than can you say that you are moving, turning, standing up or upside-down? You can't. The velocity and movement are measured relative to another referance.

The measure units we use in real life are all scaled from a "referance" defined by General Conference on Weights and Measures, in International System of Units (a.k.a. SI units). There is no measure unit that references it's own. For example "Meter" measurement: 1 meter is defined with the distance that light travels in 1/299.792.458 seconds.

Physics system in unity works in that way too. You may notice that there are no measure units in rigidbody settings, that's because we don't need them to adjust our virtual world. You can set one of your object's mass to 1 and other to 2 and the second one will be double weight of first. And will actually go double slower than the first one if you apply same force to both of them.

So, if you adjust every rigidbody and scale value to real values in you scene, then every physics operation may seem more realistic too.

Best wishes!

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
avatar image
0

Answer by Novodantis · Jun 29, 2015 at 09:29 PM

If your Rigidbodies have a drag of 0 already, then this is probably a scale issue as Owen Reynolds says. Remember that falling speed is an acceleration, 9 metres per second per second. Therefore, scale is important. If your object is 9 metres tall, it will accelerate by its own height each second. If it is 90cms tall, it will appear to move ten times quicker. Note: Unity scales relative to parent. One way to measure reliably is to create a fresh unparented Cube and place it alongside your object. The cube is 1 cubic metre.

If the scale is right, its falling speed should be correct for an object of that size in a vacuum, assuming drag is still 0 (this is actually faster than it would be in conventional experience, but not by a noticable amount initially). If it still looks slow, I would check your Time settings.

If the time is also set standard, all objects should be falling correctly. It may be an optical illusion if the fall looks slow.

Comment
Add comment · Show 5 · 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 Tonyx97 · Jun 29, 2015 at 09:41 PM 0
Share

The scale is correct, the time too and this is still slow... I'm with Unity for 2 years and I didn't see this before. This is not normal.

avatar image Bunny83 · Jun 29, 2015 at 09:54 PM 0
Share

@Tonyx97:
That doesn't make much sense. You either have a script which applies counter forces to your RB or drag isn't 0. What is actually "slow" to you? have you checked / logged the rigidbody's velocity over time?

avatar image Novodantis · Jun 29, 2015 at 09:56 PM 0
Share

That's odd. Is this also the case in an empty new project?

avatar image Novodantis · Jun 29, 2015 at 10:22 PM 1
Share

Okay, you can try this test to deter$$anonymous$$e if the speed just looks slow or actually is slow:

  1. Create a cube at 0,0,0

  2. Add a rigibody with 0 drag

  3. Add the script at the bottom

  4. Check the output value (with standard gravity) to this fall-distance calculator. If it is roughly correct, your fall speeds are down to either slowed time or an optical illusion. As s.ta.c points out, a big part of what "looks right" is down to reference with real world objects and it can often look weird.

Hope that helps! (apologies for terrible code formatting in comments)

 using UnityEngine;
   using System.Collections;
   public class FallCheck : $$anonymous$$onoBehaviour {
   public float fallTime = 5;
         
   private bool output;
     void Update () {
       if (Time.timeSinceLevelLoad > fallTime && !output){
         Debug.Log ("Fallen: "+transform.position.y);
         output = true;
       }
     }
   }


avatar image Tonyx97 · Jun 30, 2015 at 09:33 AM 0
Share

Thanks you, I don't know why it works correctly now.. $$anonymous$$aybe optical illusion? $$anonymous$$aybe I realized that with your test the physics are correctly set and now It seems correctly for me... Brain magic haha.

avatar image
0

Answer by Tonyx97 · Jun 29, 2015 at 10:02 PM

Yes it's a "empty" project, just created, and I put some rigidbodies, shall I configure something? I don't remember nothing about changing "gravity" or something like that when I started a new project. edit: sorry for post answer I didn't realize.

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

25 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

Related Questions

Setting a RigidBody's velocity messes with my custom gravity, not sure how to proceed. 0 Answers

Horizontal Drag, no Vertical Drag 1 Answer

Help with DragRigidbody.js ? 1 Answer

How to influence the direction of an falling object by dragging? 1 Answer

drag object including free 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