PhysicMaterial.bounceCombine 弹力组合

var bounceCombine : PhysicMaterialCombine

Description描述

Determines how the bounciness is combined.

决定弹力是怎样组合的。

Traditionally bounciness 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 bounciness values of two materials are combined.

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

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		collider.material.bounceCombine = PhysicMaterialCombine.Average;
	}
}
collider.material.bounceCombine = PhysicMaterialCombine.Average;
最后修改:2011年3月31日 Thursday 10:20

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。