PhysicMaterial.frictionCombine Manual     Reference     Scripting  
Scripting > Runtime Classes > PhysicMaterial
PhysicMaterial.frictionCombine

var frictionCombine : PhysicMaterialCombine

Description

Determines how the friction is combined.

Traditionally friction properties are dependent on the combination of the two materials in contact. This is however impractical in a game. Instead you can use the combine mode to tune how the friction values of two materials are combined.

JavaScripts
collider.material.frictionCombine = PhysicMaterialCombine.Average;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
collider.material.frictionCombine = PhysicMaterialCombine.Average;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
collider.material.frictionCombine = PhysicMaterialCombine.Average