• 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
3
Question by jinsung486 · Jun 27, 2014 at 07:40 AM · collisionphysicsbounce

How to get a perfect bouncing ball.

In the unity physics system, It may be hard to get a perfect bouncing ball.

Bounciness is 1 and drags,frictions are all 0.

In my thought , it will be a perfect bouncing ball, but it isn't.

It is getting more and more energy.

So, I want to know how to get a perfect bouncing ball in 3D.

In case,

Let me explain my program .

In the cube, there are 300 spheres. they collide with each other and cube.!

Comment
Add comment · Show 4
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 Andres-Fernandez · Jun 27, 2014 at 08:06 AM 1
Share

It would be better if you could explain to us what you mean by "perfect bouncing ball". Is a ball that doesn't lose energy when it bounces perfect? It doesn't sound realistic to me, but maybe that's what you are trying to achieve. So please, explain.

Besides, if you are using physics, you have to think that gravity and other forces have an impact on your ball when bouncing. And you also need to have a look at the bounce combine property, which also plays a role when colliding with other elements.

Again, tell us what you want to achieve and maybe someone can help you.

avatar image jinsung486 · Jun 30, 2014 at 01:53 AM 0
Share

Thank you Andres Fernandez.

I will explain this more detail.

http://en.wikipedia.org/wiki/Elastic_collision

That is, There is no gravity and friction.

And their Bounciness is 1.

avatar image timvanderweijde · Jun 30, 2014 at 06:27 AM 0
Share

The example above is about bouncing between atoms. Those physics are different then 'normal' physics. The physics Engine works with other variables like gravity e.d. So, in other words you have to play with other variables to get your 'perfect' bouncing behavior.

avatar image toromano · Apr 25, 2016 at 12:44 PM 0
Share

This answer might be useful: http://answers.unity3d.com/answers/1086088/view.html

6 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Wolverine-X-man · Jul 01, 2020 at 08:56 PM

in our ball player script use this line of code assists>>>

 void OnCollisionEnter(Collision collision) {
         _rigidbody.velocity = new Vector3 (collision.relativeVelocity.x, collision.relativeVelocity.y);
  }

  

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
  • ‹
  • 1
  • 2

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

36 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

Related Questions

how the ball bounces of equal in angles? 1 Answer

Ball bounce angle 1 Answer

Object with rigidbody bounces after hit. 0 Answers

Enemy bouncing physics 0 Answers

Unity2D Collision is bugged 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