文档

Unity Engine

Unity Engine

skinWidth

Used when set to MeshCollider.inflateMesh to determine how much inflation is acceptable.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
警告
Deprecated. MeshCollider.skinWidth is no longer used.
public float skinWidth { get; set; }

Remarks

Larger values will decrease the accuracy of the generated mesh. Smaller values may not allow PhysX to generate a convex mesh. The value must be larger than 0.