InteractiveCloth.friction 摩擦力

var friction : float

Description描述

The friction of the cloth.

布料的摩擦力。

Must be between zero and one.

必须在0~1之间。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		transform.GetComponent<InteractiveCloth>().friction = 0;
	}
}
// Make the cloth slide on any surface
//使布料在任何表面上滑落

transform.GetComponent(InteractiveCloth).friction = 0;
Page last updated: 2011-3-27