Physics物理学
- bounceThreshold
- CapsuleCastAll
- CapsuleCast
- CheckCapsule
- CheckSphere
- GetIgnoreLayerCollision
- gravity
- IgnoreCollision
- IgnoreLayerCollision
- Linecast
- maxAngularVelocity
- minPenetrationForPenalty
- OverlapSphere
- RaycastAll
- Raycast
- sleepAngularVelocity
- sleepVelocity
- solverIterationCount
- SphereCastAll
- SphereCast
Physics.minPenetrationForPenalty 最小渗透深度
static var minPenetrationForPenalty : float
Description描述
The minimum contact penetration value in order to apply a penalty force (default 0.05). Must be positive.
两个物体接触碰撞时,物体间最小渗透(穿透)深度值。默认0.05.取值范围从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.minPenetrationForPenalty = 0.1F;
}
}
Physics.minPenetrationForPenalty = 0.1;
最后修改:2011年4月9日 Saturday 9:32