public void Init() { sd = new SpringDamper(p1.particle, p2.particle, springConstant, restLength, springDamper); }
// 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); }
// Use this for initialization private void Start() { sd = new SpringDamper(p1.particle, p2.particle, springConstant, restLength, springDamper); }