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