var staticFriction : float
Description
The friction used when an object is lying on a surface. Usually a value from 0 to 1.
A value of 0 feels like ice, 1 feels like rubber.
collider.staticFriction = 1;
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
void Awake() {
collider.staticFriction = 1;
}
}
import UnityEngine
import System.Collections
class example(
MonoBehaviour):
def
Awake():
collider.staticFriction = 1