.. | .. |
---|
133 | 133 | // ObjEditor.aConstraints.gridwidth = 1; |
---|
134 | 134 | // //ObjEditor.aConstraints.fill = 0; |
---|
135 | 135 | // ObjEditor.aConstraints.gridx -= 1; |
---|
136 | | - normalField = AddSlider(oe.ctrlPanel, "Normal:", 0, 20.0, Math.log(spring.normalpusH+1), 1); |
---|
| 136 | + normalField = AddSlider(oe.ctrlPanel, "Normal:", 0, 20.0, Math.log(spring.normalpush+1), 1); |
---|
137 | 137 | Return(); |
---|
138 | 138 | |
---|
139 | 139 | /**/ |
---|
.. | .. |
---|
472 | 472 | |
---|
473 | 473 | spring.W.AddForce(spring.new Avoider(GetEditor().copy.selection.get(0))); |
---|
474 | 474 | } |
---|
475 | | -// else |
---|
| 475 | + else |
---|
| 476 | + { |
---|
| 477 | + if (spring.W instanceof cSpring.ActingForces) |
---|
| 478 | + ((cSpring.ActingForces)spring.W).forces.clear(); |
---|
| 479 | + } |
---|
476 | 480 | /* |
---|
477 | 481 | if (spring.Phys == null) // || spring.IsAutoFreeze()) |
---|
478 | 482 | spring.InitPhysics(); |
---|
.. | .. |
---|
564 | 568 | spring.K = k; |
---|
565 | 569 | spring.M = m; |
---|
566 | 570 | spring.G.acceleration = g; |
---|
567 | | - spring.normalpusH = d; // * Math.sqrt(m/k); |
---|
| 571 | + spring.normalpush = d; // * Math.sqrt(m/k); |
---|
568 | 572 | spring.limit = L; |
---|
569 | 573 | spring.restlengthFactor = t; |
---|
570 | 574 | spring.W.wind = v; |
---|