Package arc.math.geom

Class Spring2D

java.lang.Object
arc.math.geom.Spring2D

public class Spring2D extends Object
  • Field Details

    • value

      public Vec2 value
    • target

      public Vec2 target
    • velocity

      public Vec2 velocity
    • damping

      public float damping
    • frequency

      public float frequency
  • Constructor Details

    • Spring2D

      public Spring2D(float damping, float frequency)
  • Method Details

    • update

      public void update(float deltaTime)