Example #1
0
 public VerletParticle3D clearVelocity() {
   prev.set(this);
   return this;
 }
Example #2
0
 public VerletParticle3D setPreviousPosition(Vec3D p) {
   prev.set(p);
   return this;
 }
Example #3
0
 protected void applyForce() {
   temp.set(this);
   addSelf(sub(prev).addSelf(force.scale(weight)));
   prev.set(temp);
   force.clear();
 }