PhysicMaterial.dynamicFriction 动态摩擦力

var dynamicFriction : float

Description描述

The friction used when already moving. This value has to be between 0 and 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.dynamicFriction = 1;
	}
}
collider.dynamicFriction = 1;
Page last updated: 2011-3-31