Package toxi.physics3d
Class VerletMinDistanceSpring3D
java.lang.Object
toxi.physics3d.VerletSpring3D
toxi.physics3d.VerletMinDistanceSpring3D
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.
-
Field Summary
Fields inherited from class toxi.physics3d.VerletSpring3D
a, b
-
Constructor Summary
ConstructorDescriptionVerletMinDistanceSpring3D
(VerletParticle3D a, VerletParticle3D b, float len, float str) -
Method Summary
Methods inherited from class toxi.physics3d.VerletSpring3D
getRestLength, getStrength, lockA, lockB, setRestLength, setStrength
-
Constructor Details
-
VerletMinDistanceSpring3D
-
-
Method Details
-
update
public void update(boolean applyConstraints)
-