Package toxi.physics3d
Class VerletConstrainedSpring3D
java.lang.Object
toxi.physics3d.VerletSpring3D
toxi.physics3d.VerletConstrainedSpring3D
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 Summary
Modifier and TypeFieldDescriptionfloat
Maximum relaxation distance for either end of the spring in world unitsFields inherited from class toxi.physics3d.VerletSpring3D
a, b
-
Constructor Summary
ConstructorDescriptionVerletConstrainedSpring3D
(VerletParticle3D a, VerletParticle3D b, float len, float str) VerletConstrainedSpring3D
(VerletParticle3D a, VerletParticle3D b, float len, float str, float limit) -
Method Summary
Methods inherited from class toxi.physics3d.VerletSpring3D
getRestLength, getStrength, lockA, lockB, setRestLength, setStrength
-
Field Details
-
limit
public float limitMaximum relaxation distance for either end of the spring in world units
-
-
Constructor Details
-
VerletConstrainedSpring3D
- Parameters:
a
-b
-len
-str
-
-
VerletConstrainedSpring3D
public VerletConstrainedSpring3D(VerletParticle3D a, VerletParticle3D b, float len, float str, float limit) - Parameters:
a
-b
-len
-str
-limit
-
-