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 Graeme P · Apr 16, 2011 at 11:29 PM · physicsmaterialbouncesetup

Getting realistic bounces using physics materials.

Hi,

Im trying to set up am object spawning gun to fire spheres that will then bounce off all the walls accurately.

Unfortunately, if the angle is any more mild than about 70 degrees, the ball just slides along the wall that it has collided with.

The settings of the wall and projectiles physics material are...

-- Bounce on 1 all frictions on 0.#

-- 1 mass, 0 drag and no gravity or Kine.

Can anyone please suggest a solution, or alternative.

Thanks, - Graeme.

EDIT: Additional info.

" I should probably mention though that I'm trying to simulate ball physics like these - tanktrouble.com - I think the problem is that when the angle gets to low, the physics think it should roll across the surface instead of bouncing away at the correct angle. so what I really need is a solution to get my ball physics down to pure bounce, for total reflection of the initial angle - Any suggestions please? Thanks "

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

3 Replies

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

Answer by Jason B · Apr 16, 2011 at 11:47 PM

All frictions are too low, that's probably your problem right there. It's a pretty common question people ask, wondering why their ball slides instead of rolls. :)

Set your dynamic frictions to 1 and see how that affects things. Go down from there if you need it to not be 1.

Comment
Add comment · Show 4 · 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 Graeme P · Apr 17, 2011 at 10:07 AM 0
Share

Thanks so much for the suggestion, I should probably mention though that I'm trying to simulate ball physics like these - http://www.tanktrouble.com/ - I think the problem is that when the angle gets to low, the physics think it should roll across the surface ins$$anonymous$$d of bouncing away at the correct angle. so what I really need is a solution to get my ball physics down to pure bounce, for total reflection of the initial angle - Any suggestions please?

Thanks

avatar image Jason B · Apr 17, 2011 at 03:33 PM 0
Share

Ah, okay. Well then, you need to set your Bounciness of the physics material to something more. $$anonymous$$eep in $$anonymous$$d that a bounciness of 1 means that however much force you strike an object at, the exact opposite amount of force will be applied back. If you have a rigidbody with no damping and a bounciness of 1 (and a bounce combine of $$anonymous$$aximum), it would theoretically bounce forever. $$anonymous$$eep your friction high (to avoid sliding) and set the bounciness high (so it will bounce). If the bounciness isn't strong enough, consider changing to $$anonymous$$aximum.

avatar image Jason B · Apr 17, 2011 at 03:36 PM 0
Share

The default of Average will mean that if your ball (with a bounce of 1) and, say, a wall (with a bounce of 0) collides, the real bounce will have a strength of 0.5 (the average between the two), and thus the ball will rebound with half the energy it impacted at. In order to make projectiles bounce (I guess? Didn't play it much) forever as in TankTrouble, you might want to ensure there is no movement damping so the projectile never slows down.

avatar image Graeme P · Apr 19, 2011 at 10:08 AM 0
Share

I think i tried every variation, but i'l try again to make sure. Thanks a bunch for the help, really appreciate people being so helpful on this site.

avatar image
1

Answer by vaxushti · Sep 19, 2019 at 10:05 AM

Pool balls have a very high elasticity, so you should set your bounciness at close to 1. They also have very low Friction, so both static and dynamic should be set at close to 0.

I'm less certain about pool tables however. They probably have pretty low friction and bounciness, both around the range of 0.1-0.3 if I were to guess.

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 ExNinja · Mar 01, 2018 at 11:03 PM

Because this comes up in searches for example Physics Materials, here are the original Bouncy, Ice, MaxFriction, Metal, Rubber, Wood, and ZeroFriction from Unity:

http://exninja.com/files/PhysicsMaterials_From_Standard_Assets.unitypackage

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Cant find options to change physic material to bouncy 2 Answers

Physical Material causes wrong direction at bouncing 0 Answers

Reducing bounce on simple boxes 0 Answers

How do you keep a bouncing ball from "breaking" through cloth 1 Answer

how to change physics material of a colider in runtime 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