Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Friction Bug with Physics Material?

Discussion in 'Physics for ECS' started by chasse, Sep 7, 2023.

  1. chasse

    chasse

    Joined:
    Dec 10, 2015
    Posts:
    11
    Good afternoon,

    Following the official documentation (https://docs.unity3d.com/Packages/com.unity.physics@1.0/manual/concepts-simulation-set-up.html), I think I'm observing a bug wherein the Friction setting is completely ignored and a sphere that impacts another sphere will keep sliding across a plane. The Restitution setting appears to be working correctly, but for some reason the Friction, even when both the ground plane and spheres are set to 1, the spheres will keep sliding. I tried both regular Physics Material (per the documentation) and even using the Custom Authoring Shape (Physics Shape) to no avail. Is this a bug or is there a workaround?

    Expected Behaviour: the Friction coefficients are used, just like the Restitution coefficient is properly used

    Unity Version: 2022.3.8f1
    Unity Physics Version: 1.0.14

    Edit: also forgot to mention I had the mass set to a high number before, but decided to make it even higher which seems odd to have masses over 1000000.
     
    Last edited: Sep 8, 2023
  2. daniel-holz

    daniel-holz

    Unity Technologies

    Joined:
    Sep 17, 2021
    Posts:
    264
    @chasse : would you mind providing some more details on how to reproduce this?
    I am not sure I understand the scenario.