ドキュメント

Unity Engine

Unity Engine

friction

The friction used by the Collider2D.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float friction { get; }

Remarks

A Collider2D can be assigned a PhysicsMaterial2D either directly via to the Collider2D.sharedMaterial, indirectly via the attached Rigidbody2D.sharedMaterial, the global default or if no PhysicsMaterial2D is assigned then a default value is used.