Class VerletMinDistanceSpring3D

java.lang.Object
toxi.physics3d.VerletSpring3D
toxi.physics3d.VerletMinDistanceSpring3D

public class VerletMinDistanceSpring3D extends VerletSpring3D
Implements a string which will only enforce its rest length if the current distance is less than its rest length. This is handy if you just want to ensure objects are at least a certain distance from each other, but don't care if it's bigger than the enforced minimum.
  • Constructor Details

  • Method Details

    • update

      public void update(boolean applyConstraints)