var staticFriction : float
Description描述
The friction used when an object is lying on a surface. Usually a value from 0 to 1.
当物体在表面静止时使用的摩擦力。通常在0到1之间。
A value of 0 feels like ice, 1 feels like rubber.
0值像冰,1值像橡胶。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Awake() {
collider.staticFriction = 1;
}
}
collider.staticFriction = 1;