文档

Unity Engine

Unity Engine

minPenetrationForPenalty

The minimum contact penetration value in order to apply a penalty force (default 0.05). Must be positive.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
警告
Removed. Use Physics.defaultContactOffset or Collider.contactOffset instead.
public static float minPenetrationForPenalty { get; set; }

Remarks

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