文档

Unity Engine

Unity Engine

minPenetrationForPenalty

This property is obsolete. You should use Physics2D.defaultContactOffset instead.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
警告
Removed. Physics2D.minPenetrationForPenalty is obsolete. Use Physics2D.defaultContactOffset instead.
public static float minPenetrationForPenalty { get; set; }

Remarks

Additional Resources: Physics2D.defaultContactOffset.