PhysicMaterial.frictionCombine 摩擦力组合

var frictionCombine : PhysicMaterialCombine

Description描述

Determines how the friction is combined.

决定摩擦力是怎样组合的。

Traditionally friction properties are dependent on the combination of the two materials in contact. This is however impractical in a game. Instead you can use the combine mode to tune how the friction values of two materials are combined.

传统上摩擦力属性依赖于两种相互接触的材质的组合。但是,这在游戏中是不切实际的。你可以使用组合模式来调整两个材质的摩擦力怎样被组合。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		collider.material.frictionCombine = PhysicMaterialCombine.Average;
	}
}
collider.material.frictionCombine = PhysicMaterialCombine.Average;
Page last updated: 2011-3-31