Documentation

Unity Engine

Download Unity

Unity Engine

currentSpringForce

The force the spring applied along the joint during the last simulation step, usually in newtons. A positive value pushes the two bodies apart and a negative value pulls them together. This is zero when the spring is disabled. Unlike the current constraint force, it excludes the force from the distance limits and the motor.
Read time 1 minuteLast updated a month ago

Definition

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

Remarks