Search Unity

Need help with physics materials.

Discussion in 'Physics' started by adam4472, Feb 27, 2015.

  1. adam4472

    adam4472

    Joined:
    Feb 27, 2015
    Posts:
    1
    So i'm pretty much complete novice at using Unity and have started by trying to make a basic driving game.
    At the moment i've got all the physics down and it's working pretty well.
    But i want it so when the wheel colliders contact a certain object/material the car will slow down as if it's driving on a high friction terrain. I tried using physics materials but to no avail, they simply didn't do anything to the friction of my wheel colliders.
    Am i doing something wrong?
    Is there a better way of doing this?
    I so how?
     
  2. KingMatthew

    KingMatthew

    Joined:
    Jul 7, 2013
    Posts:
    166
    Wheel Colliders are not affected by physics materials. This is because friction for wheels needs to be calculated separately. Wheels use the slip-based friction model.

    A way to get around this would be to change the friction of wheel itself. Maybe you can have different triggers over different types of ground. When the car comes in contact with those triggers, change the friction values of the wheels.