Package teilchen.force
Class TearableSpring
- java.lang.Object
-
- teilchen.force.Spring
-
- teilchen.force.TearableSpring
-
- All Implemented Interfaces:
IForce
,IConnection
public class TearableSpring extends Spring
-
-
Constructor Summary
Constructors Constructor Description TearableSpring(Particle pA, Particle pB)
TearableSpring(Particle pA, Particle pB, float pSpringConstant, float pSpringDamping, float pRestLength, float pTearDistance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(float pDeltaTime, Physics pParticleSystem)
boolean
dead()
float
tear_distance()
void
tear_distance(float pTearDistance)
-
Methods inherited from class teilchen.force.Spring
a, a, active, active, b, b, currentLength, damping, damping, dead, ID, restlength, restlength, setOneWay, setRestLengthByPosition, strength, strength
-
-
-
-
Method Detail
-
tear_distance
public final float tear_distance()
-
tear_distance
public final void tear_distance(float pTearDistance)
-
apply
public void apply(float pDeltaTime, Physics pParticleSystem)
-
-