ClothSpring.cs 418 B

1234567891011121314151617181920212223242526
  1. using System;
  2. namespace SpriteViewer
  3. {
  4. public struct ClothSpring
  5. {
  6. public ClothSpring(int PID1, int PID2, float Len, float Stiffness)
  7. {
  8. this.P1 = PID1;
  9. this.P2 = PID2;
  10. this._NaturalLength = Len;
  11. this._InverseLength = 1f / Len;
  12. this._Stiffness = Stiffness;
  13. }
  14. public int P1;
  15. public int P2;
  16. public float _NaturalLength;
  17. public float _InverseLength;
  18. public float _Stiffness;
  19. }
  20. }