• 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 farid_fahara · Nov 11, 2020 at 04:29 AM · physicsrigidbodyheavy

PHYSICS GETTING HEAVIER, WHY?

i have a robot with 2 rigid bodys and 4 colliders i was tring to keep the robot like hovering because i was doing procedural animation and i wanted the player to be able to push him and all worked good, untill i added another robot in any place, it is like if the rigidbodys became heavier(like if it were adding more gravity) like litterally makes the robot to literally get sticked to the ground. i realized that this just happens if i add more rigidbodys anywhere in the scene, im in unity 2020.2.0b9, its like the more rigidbodys are in the scene the more force i need to move one of them. this also happen if i select something in the editor(yes i dont understad either) actually i think i soved it disabling the gravity but it would be good to know why this is happening

Comment
Add comment · Show 6
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 endasil_unity · Nov 11, 2020 at 03:22 PM 0
Share

Are you saying that adding another robot in the scene with no shared game object with the first one, makes the robot heaver? If the rigid bodies were connected to each other I could understand that the total mass increases, but what you describe sound strange. Do you happen to be able to share a $$anonymous$$imal project that these things happening in to make it easier to understand how it is set up?

avatar image farid_fahara endasil_unity · Nov 11, 2020 at 03:49 PM 0
Share

yes, im saying that when i add another robot or rigidbody anywhere in the scene even with any conection between the objects, makes the robot heavier.

avatar image endasil_unity farid_fahara · Nov 11, 2020 at 04:51 PM 0
Share

And you don't have the two robots as a child of something? In general, adding more rigid bodies to the scene should not increase the weight of the objects. Can you provide a simple project where this happens? am not able to reproduce it locally with a scene where I throw in a few rigid bodies? It is an interesting problem but a bit hard to see what is going wrong with the information available.

Show more comments

2 Replies

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

Answer by farid_fahara · Nov 13, 2020 at 04:57 AM

After a while this started happening again, the force i needed to move a rigidbody was increasing whenever i put more things in to the scene, but not always this just happened when the fps were decreasing, so i realized how big was my stupidity, the gravity were not increasing my fps were decreasing and the code where i added force to my rigidbody were adding force per frame so i just needed to add Time.DeltaTime to the code

 //i just multiplied all by time.deltatime and then i multiplied again by the number of fps i had so i could get the same result i had before whiout changing every thing else but if you multiply it by  50 or any other number that is bigger than 10 or 20 should be fine        
 
 rigidbody.AddForce(Vector3.up * velocity * Time.deltaTime * 30);

hope this can help someone with the same issue in the future :)

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 hendryshaikh2004 · Nov 11, 2020 at 04:46 AM

in the Rigidbody component there is mass decrease the mass and check if it works

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 farid_fahara · Nov 11, 2020 at 01:45 PM 0
Share

it works, but as soon as i add more robots the issue gets back

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

263 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 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 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 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 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 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 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 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 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

Physics gun like in Garry's Mod? 3 Answers

How to negate this force? 2 Answers

Is it okay to use ForceMode.VelocityChange in Update()? 1 Answer

How to change CC script to Rigidbody script 1 Answer

How to affect opponent's rigidbody properties using photon networking ? 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