com.yobotics.simulationconstructionset.util.perturbance
Class CollisionPerturbance

java.lang.Object
  extended by com.yobotics.simulationconstructionset.util.perturbance.CollisionPerturbance
All Implemented Interfaces:
DirectedPerturbance

public class CollisionPerturbance
extends java.lang.Object
implements DirectedPerturbance


Constructor Summary
CollisionPerturbance(Collidable collidable, double ballVelocity, double disturbanceEnergy, double coefficientOfRestitution, YoVariableRegistry parentRegistry)
           
 
Method Summary
 void doEveryTick()
           
 double getBallMass()
           
 double getBallVelocityMagnitude()
           
 void perturb(javax.vecmath.Vector3d direction)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionPerturbance

public CollisionPerturbance(Collidable collidable,
                            double ballVelocity,
                            double disturbanceEnergy,
                            double coefficientOfRestitution,
                            YoVariableRegistry parentRegistry)
Method Detail

perturb

public void perturb(javax.vecmath.Vector3d direction)
Specified by:
perturb in interface DirectedPerturbance

getBallMass

public double getBallMass()
Specified by:
getBallMass in interface DirectedPerturbance

getBallVelocityMagnitude

public double getBallVelocityMagnitude()
Specified by:
getBallVelocityMagnitude in interface DirectedPerturbance

doEveryTick

public void doEveryTick()
Specified by:
doEveryTick in interface DirectedPerturbance