기술 자료

Unity Engine

Unity Engine

minPenetrationForPenalty

The minimum contact penetration value in order to apply a penalty force (default 0.05). Must be positive.
읽는 시간 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.