文档

Unity Engine

Unity Engine

staticFriction

The friction coefficient used when an object is lying on a surface.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public float staticFriction { get; set; }

Remarks

Must be greater than or equal to zero. Natural materials will usually have a friction coefficient between 0 (no friction at all, like slippery ice) and 1 (full friction, like rubber). Values larger than 1 are possible, and may be realistic for sticky materials.