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
3
Question by Fanttum · Sep 13, 2014 at 07:54 PM · 2d2d-physicsbouncefriction

How do 2 Physics Material 2D Interact with Each other?

Specifically the bounce and friction combines.

For example the 3D Physic Material has a Friction Combine, and a Bounce Combine property to it which you can select how the materials interact with each other.

     Average    The two friction values are averaged.
     Minimum    The smallest of the two values is used.
     Maximum    The largest of the two values is used.
     Multiply    The friction values are multiplied with each other.

Yet Physics Material 2D do not have these properties. I would figure it to be one of these, but it isn't documented anywhere. :/ My guess after minimal testing is that it uses the maximum of the 2, but I really have no clue.

Comment
Add comment · Show 1
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 Andy-Block · Sep 18, 2014 at 10:48 AM 0
Share

I was wondering the same thing, and had come to the same conclusion, but would like confirmation if anyone can provide it :)

2 Replies

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

Answer by noio · Nov 27, 2014 at 02:31 PM

I think the values are multiplied by default.

I have added the friction values of the object and ground to the animation. As you can see, because 0.2 * 1 == 2 * 0.1 (the leftmost setups). Additionally, values of 0 and 1000 make the object slide, but a missing Physics Material (x) is treated differently.

alt text

Comment
Add comment · Show 3 · 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 Andy-Block · Nov 27, 2014 at 02:51 PM 0
Share

Nice information, and well presented, thanks :). I should have said in my comment above that my conclusion was only applicable to bounciness rather than friction. I don't suppose you've done similar tests on that?

avatar image Fanttum · Mar 15, 2015 at 03:22 AM 0
Share

It still seams very weird to me, but good testing!

avatar image noio · Mar 23, 2015 at 04:58 PM 0
Share

Yeah. I guess multiply is the default for the physics engine (Box2D?) that unity uses under the hood.

avatar image
2

Answer by ALEXEY56745 · Feb 22, 2016 at 09:52 PM

From here: http://www.box2d.org/manual.html#_Toc258082971

friction = sqrtf(shape1->friction * shape2->friction)

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

26 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

Related Questions

Wheel Friction Curve in 2d 0 Answers

how to remove all bounce in unity 2d. 0 Answers

2D Polygon Collider Ball with bounce material not stay completely still 0 Answers

How to rotate rigidbody2d's sprite when colliding?,How to rotate sprite of rigidbody2d, but without friction? 0 Answers

2D Realistic Space Collision. 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