Class VerletConstrainedSpring3D

java.lang.Object
toxi.physics3d.VerletSpring3D
toxi.physics3d.VerletConstrainedSpring3D

public class VerletConstrainedSpring3D extends VerletSpring3D
Implements a spring whose maximum relaxation distance at every time step can be limited to achieve better (if physically incorrect) stability of the whole spring system.
  • Field Details

    • limit

      public float limit
      Maximum relaxation distance for either end of the spring in world units
  • Constructor Details

    • VerletConstrainedSpring3D

      public VerletConstrainedSpring3D(VerletParticle3D a, VerletParticle3D b, float len, float str)
      Parameters:
      a -
      b -
      len -
      str -
    • VerletConstrainedSpring3D

      public VerletConstrainedSpring3D(VerletParticle3D a, VerletParticle3D b, float len, float str, float limit)
      Parameters:
      a -
      b -
      len -
      str -
      limit -