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 ConradicalsGames · Jun 22, 2020 at 01:20 AM · rigidbody2dphysics2dcollision2dbox2d

Collision Between 2D Rigidbodies is Jittery (No Movement)

Hi everyone. I have a setup where I have multiple rigidbodies with box colliders that are colliding with each other (you can see a video of that here).

There is no code involved for moving the boxes, and the reason they move is because of an Area Effector 2D that changes its Force Angle.

Here's some screenshots of the green and purple rigidbody components respectively:

Green: https://drive.google.com/file/d/1OwGi8-mm9Cfn2zVUsa1Pq4Egbppu8jfb/view?usp=sharing

Purple: https://drive.google.com/file/d/1Mp7xgqhkBy9Lhc087mKUUoL3YNuzZJRw/view?usp=sharing

What I need help with is the fact that the collisions between these rigidbodies cause jittery behaviour, and as you can see, this sometimes even forces the boxes to fall out of the map.

Any idea why this would be happening? I already tried changing rigidbody settings, and even the Baumgarte scales in the Physics2D project settings.

Would really appreciate some help, thank you in advance :)

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Neomedus · Jun 22, 2020 at 02:00 AM

It seems like your objects may be clipping into each other, I would add code so that if they are touching, the area effector 2D won't add force in the direction that they are touching.

Comment
Add comment · Show 2 · 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 ConradicalsGames · Jun 22, 2020 at 05:33 PM 0
Share

The thing is that if the force is not applied, there is no gravity to push them anywhere so the blocks would stay still.

I tried refactoring the whole system to use the default Physics2D gravity and changing that ins$$anonymous$$d, but the behaviour is exactly the same so I don't think the issue lies in the forces being applied constantly.

avatar image dylan1812 ConradicalsGames · Jun 22, 2020 at 10:33 PM 0
Share

If you don't apply force to the rigidbodies can you set one one of them to kinematic? (I'm pretty new to unity so i apoligise if im missing some other point of dynamic bodies). Edit: I missed that you tried this already, but I'm confused that it didn't solve the problem, kinematic bodies canonly be moved from code, right?

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

136 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

Related Questions

How to disable collisions without disabling rigidbody? 1 Answer

Calling a Collision from code OR not simulating drag/gravity 0 Answers

Workarounds for Higher Control When Using Physics2D? 0 Answers

Different collision results in some areas. 1 Answer

Collision2D.relativeVelocity should be 0? 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