|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.physics2d.VerletSpring2D
toxi.physics2d.VerletMinDistanceSpring2D
public class VerletMinDistanceSpring2D
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.physics2d.VerletSpring2D |
---|
a, b |
Constructor Summary | |
---|---|
VerletMinDistanceSpring2D(VerletParticle2D a,
VerletParticle2D b,
float len,
float str)
|
Method Summary |
---|
Methods inherited from class toxi.physics2d.VerletSpring2D |
---|
getRestLength, getStrength, lockA, lockB, setRestLength, setStrength |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VerletMinDistanceSpring2D(VerletParticle2D a, VerletParticle2D b, float len, float str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |