Physics.bounceThreshold 反弹阈值

static var bounceThreshold : float


Two colliding objects with a relative velocity below this will not bounce (default 2). Must be positive.


This value is usually changed in Edit->Project Settings->Physics inspector instead of from scripts.

这个值常在Edit->Project Settings->Physics 菜单下设定。而不用在脚本中。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		Physics.bounceThreshold = 1;
Physics.bounceThreshold = 1;
Page last updated: 2011-4-9