static var bounceThreshold : float
Description描述
Two colliding objects with a relative velocity below this will not bounce (default 2). Must be positive.
两个碰撞物体的相对速度如果在这个设定值之下,不会反弹。默认值2.。取值范围0到无穷大。必须为正数。
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;