com.yobotics.simulationconstructionset.util.perturbance
Class ParticleCollisionCalculator

java.lang.Object
  extended by com.yobotics.simulationconstructionset.util.perturbance.ParticleCollisionCalculator

public class ParticleCollisionCalculator
extends java.lang.Object


Method Summary
static void handleCollision(javax.vecmath.Vector3d velocity1ToPack, javax.vecmath.Vector3d velocity2ToPack, double m1, double m2, double coefficientOfRestitution)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

handleCollision

public static void handleCollision(javax.vecmath.Vector3d velocity1ToPack,
                                   javax.vecmath.Vector3d velocity2ToPack,
                                   double m1,
                                   double m2,
                                   double coefficientOfRestitution)
Parameters:
velocity1ToPack -
velocity2ToPack -
m1 -
m2 -
coefficientOfRestitution - Coefficient of restitution is always between 0 and 1 coefficientOfRestitution = 0 is a perfectly inelastic collision coefficientOfRestitution = 1 is a perfectly elastic collision