Search Unity

What is the default friction values of the "None" Physics 2D materiel?

Discussion in '2D' started by ViperCode_, Jan 26, 2016.

  1. ViperCode_

    ViperCode_

    Joined:
    Apr 11, 2011
    Posts:
    19
    If I don't a friction material to the project(none) and I don't assign one to a 2D collider, it doesn't act like there is no friction in the scene, but I couldn't find a default friction value for the "None (Physics Material 2D)" anywhere. Obviously assigning materials to the scene and colliders would be the better option, but it would be nice to know what the default values are.
     
    Goldfishie likes this.
  2. ViperCode_

    ViperCode_

    Joined:
    Apr 11, 2011
    Posts:
    19
    Alright, anyone who finds this later in the future, the default is:
    .4 friction(coefficient of friction)
    0 bounciness.
    Which are the default values when you create a new Physics2D material also.
     
    emredesu, randy2_0, Roger-W and 8 others like this.
  3. cmz-neu4590

    cmz-neu4590

    Joined:
    Apr 14, 2016
    Posts:
    7
    thanks was looking for this!!!!!! I thought so because when only my ball had a PM with both friction to 0 it still stopped sliding, and when i changed the friction combined to multiply it didn't so it makes sense.
     
    CringeItIn likes this.
  4. rsr137

    rsr137

    Joined:
    Oct 7, 2014
    Posts:
    6
    Thanks. This must be in official docs.
     
    Goldfishie likes this.
  5. ratneshpatel

    ratneshpatel

    Joined:
    Oct 10, 2017
    Posts:
    21
    For me when I create a new PhysicMaterial the default Static and Dynamic friction is 0.6 and not 0.4. Is it also the default for Collider with no physic material?

    Can someone in Unity confirm this please as my game relies much on physic material?
    Thank you
     
  6. CringeItIn

    CringeItIn

    Joined:
    Jan 24, 2021
    Posts:
    9
    Still useful in 2021 your answer! Thanks a lot:)
     
    ohyesplease likes this.
  7. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,491
    If it helps, you can look at any 2D collider Info in the inspector and see what it's using for its Friction/Bounce and this obviously includes if it doesn't even specify a material and it's on the Rigidbody2D or just using the default global one.

    https://gyazo.com/5c6990152e3ff3f77e8d9f4a4742757e