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
2
Question by TobLoef · Apr 25, 2015 at 09:40 PM · 2dphysics2d-physics

Bouncing ball getting stuck on edge of collider

I currently have a bunch of 2D balls, dots really, bouncing around the screen. They're 2D rigidbodies with no drag or gravity and a very bouncy physics material. When they're spawned they have some forced added in a random direction, which will pretty much be constant, since there's no drag. There's an Edge Collider around the edge of the camera.

My problem is that when the balls hit one of the edge at a very low angle, it'll begin to move along the edge of the collider and not bouncing away like it should. To better explain my problem, please see this gif or this picture.

What can I do to prevent this?

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

4 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by TobLoef · Apr 27, 2015 at 01:30 AM

What I ended up doing was decreasing the Velocity Threshold, inside Edit -> Project Settings -> Physics2D, thanks to an answer on this thread from the forums.

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
1

Answer by YesNoKonrad · Apr 26, 2015 at 12:38 PM

Hey TobLoef,

The way you describe your problem, i am pretty certain you will find your answer, if you go to Physics2D settings. Start in your menubar at the top.

Edit -> Project Settings -> Physics2D

There you will find a lot of things, which will generally help make the game perform they way you expect it to.

The entry you are specifically searching for in this case is called in english Max Angular Correction.

Sadly the explanation to those values is very cryptical and I plan to do some background readings in regard to those. Tell me if I was correct with my assumption. :)

Cordialement, K.

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 TobLoef · Apr 26, 2015 at 08:01 PM 0
Share

Thanks for the answer. It turns it I had to decrease the Velocity Threshold, as someone said in a thread on the Unity Forums. I appreciate the answer though, it would surely have helped me if I hadn't found the solution.

avatar image
0

Answer by zederis · Aug 31, 2015 at 09:02 PM

Velocity Threshold worked for me too. i had the same problem but just one ball. i reduced it from 1 to 0.0001 (thats the lowest you can get to).

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 CrossGamers · Oct 17, 2016 at 07:24 AM

i m facing same problem mentioned in .gif how to resolve it, in 3D i had done, but how to do same in 2D?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Sucking a zero-gravity ship into a black hole. 1 Answer

How to simulate physics material 2D bounce without collision? 0 Answers

ex2d with physics ? 1 Answer

Physics2D Overlapbox not working as aspected 0 Answers

Limiting Physics to X and Y 5 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