기술 자료

Unity Engine

Unity Engine

currentSpringForce

The force the spring applied along the slide axis during the last simulation step, usually in newtons. A positive value pushes body B towards a greater translation and a negative value towards a smaller one. This is zero when the spring is disabled. Unlike the current constraint force, it excludes the force from the translation limits and the motor.
읽는 시간 1분최근 업데이트: 23일 전

Definition

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

Remarks