@EditPhysMtrl.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class EditPhysMtrl
  4. {
  5. flt friction_static, friction_dynamic, bounciness, density, damping, adamping;
  6. PhysMtrl::MODE friction_mode, bounciness_mode;
  7. TimeStamp friction_static_time, friction_dynamic_time, bounciness_time, density_time, damping_time, adamping_time, friction_mode_time, bounciness_mode_time;
  8. bool newer(C EditPhysMtrl &src)C;
  9. bool equal(C EditPhysMtrl &src)C;
  10. // operations
  11. void reset();
  12. void newData();
  13. bool sync(C EditPhysMtrl &src);
  14. bool undo(C EditPhysMtrl &src);
  15. void copyTo(PhysMtrl &dest)C;
  16. // io
  17. bool save(File &f)C;
  18. bool load(File &f);
  19. bool load(C Str &name);
  20. public:
  21. EditPhysMtrl();
  22. };
  23. /******************************************************************************/
  24. /******************************************************************************/
  25. /******************************************************************************/