기술 자료

Unity Engine

Unity Engine

gravityScale

Scales the world gravity that is applied to this body. Setting the gravity scale to zero stops any gravity being applied. Likewise, a negative value inverts gravity. See PhysicsWorld.gravity.
읽는 시간 1분최근 업데이트: 21일 전

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public float gravityScale { get; set; }