|
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 Example() {
collider.staticFriction = 1;
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
collider.staticFriction = 1