Exemple #1
0
 public void Init()
 {
     sd = new SpringDamper(p1.particle, p2.particle, springConstant, restLength, springDamper);
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     part1    = new HookesLaw.Particle(firstSphere.transform.position);
     part2    = new HookesLaw.Particle(secondSphere.transform.position);
     dampener = new HookesLaw.SpringDamper(part1, part2, 1, 1, 1);
 }
Exemple #3
0
 // Use this for initialization
 private void Start()
 {
     sd = new SpringDamper(p1.particle, p2.particle, springConstant, restLength, springDamper);
 }