bond.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. Copyright (C) 2005, 2010 - Cryptic Sea
  3. This file is part of Gish.
  4. Gish is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. as published by the Free Software Foundation; either version 2
  7. of the License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. See the GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15. */
  16. void bondsimulation(void);
  17. void bonddragsimulation(void);
  18. void checkbonds(void);
  19. void createbond(int part1,int part2,int type,int objectnum);
  20. void deletebond(int bondnum);
  21. int numofbonds;
  22. struct
  23. {
  24. int part1;
  25. int part2;
  26. int type;
  27. int timetolive;
  28. float length;
  29. float maxlength;
  30. float elasticity;
  31. float compression;
  32. float tension;
  33. int stresstype;
  34. float stress;
  35. int maxstresstype;
  36. float maxstress;
  37. int sounddelay;
  38. int cycles;
  39. int objectnum;
  40. float bondnormal[3];
  41. float veclength;
  42. float oomass;
  43. } bond[16384];
  44. struct
  45. {
  46. float elasticity;
  47. float compression;
  48. float tension;
  49. int cycles;
  50. int rendertype;
  51. float rendersize;
  52. } bondtype[256];