Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.2 KiB

  1. //====== Copyright (c) 1996-2009, Valve Corporation, All rights reserved. ======
  2. //
  3. // DmeJiggleBone
  4. //
  5. //============================================================================
  6. #ifndef DMEJIGGLEBONE_H
  7. #define DMEJIGGLEBONE_H
  8. #if defined( _WIN32 )
  9. #pragma once
  10. #endif
  11. // Valve includes
  12. #include "mdlobjects/dmeproceduralbone.h"
  13. //-----------------------------------------------------------------------------
  14. // DmeJiggleBone
  15. //-----------------------------------------------------------------------------
  16. class CDmeJiggleBone : public CDmeProceduralBone
  17. {
  18. DEFINE_ELEMENT( CDmeJiggleBone, CDmeProceduralBone );
  19. public:
  20. // flags
  21. CDmaVar< bool > m_bRigid;
  22. CDmaVar< bool > m_bFlexible;
  23. CDmaVar< bool > m_bBaseSpring;
  24. CDmaVar< bool > m_bYawConstrained;
  25. CDmaVar< bool > m_bPitchConstrained;
  26. CDmaVar< bool > m_bLengthConstrained;
  27. CDmaVar< bool > m_bAngleConstrained;
  28. // general params
  29. CDmaVar< float > m_flLength;
  30. CDmaVar< float > m_flTipMass;
  31. // angle constraint
  32. CDmaVar< float > m_flAngleLimit; // Angles
  33. // yaw constraint
  34. CDmaVar< float > m_flYawMin; // Angle
  35. CDmaVar< float > m_flYawMax; // Angle
  36. CDmaVar< float > m_flYawFriction;
  37. CDmaVar< float > m_flYawBounce;
  38. // pitch constraint
  39. CDmaVar< float > m_flPitchMin; // Angle
  40. CDmaVar< float > m_flPitchMax; // Angle
  41. CDmaVar< float > m_flPitchFriction;
  42. CDmaVar< float > m_flPitchBounce;
  43. // flexible params
  44. CDmaVar< float > m_flYawStiffness; // [0, 1000]
  45. CDmaVar< float > m_flYawDamping; // [0, 10]
  46. CDmaVar< float > m_flPitchStiffness; // [0, 1000]
  47. CDmaVar< float > m_flPitchDamping; // [0, 10]
  48. CDmaVar< float > m_flAlongStiffness; // [0, 1000]
  49. CDmaVar< float > m_flAlongDamping; // [0, 10]
  50. // base spring
  51. CDmaVar< float > m_flBaseMass;
  52. CDmaVar< float > m_flBaseStiffness; // [0, 1000]
  53. CDmaVar< float > m_flBaseDamping; // [0, 10]
  54. // base spring yaw
  55. CDmaVar< float > m_flBaseYawMin;
  56. CDmaVar< float > m_flBaseYawMax;
  57. CDmaVar< float > m_flBaseYawFriction;
  58. // base spring pitch
  59. CDmaVar< float > m_flBasePitchMin;
  60. CDmaVar< float > m_flBasePitchMax;
  61. CDmaVar< float > m_flBasePitchFriction;
  62. // base spring along
  63. CDmaVar< float > m_flBaseAlongMin;
  64. CDmaVar< float > m_flBaseAlongMax;
  65. CDmaVar< float > m_flBaseAlongFriction;
  66. };
  67. #endif // DMEJIGGLEBONE_H