PhysicMaterial.bounciness 弹力

var bounciness : float

Description描述

How bouncy is the surface? A value of 0 will not bounce. A value of 1 will bounce without any loss of energy.

表面的弹力怎样?0值没有弹力。1值没有能量损失的反弹。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		collider.bounciness = 1;
	}
}
collider.bounciness = 1;
Page last updated: 2011-3-31