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.

51 lines
1.5 KiB

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =====//
  2. //
  3. // Dme version of a collision model
  4. //
  5. //===========================================================================//
  6. #ifndef DMECOLLISIONMODEL_H
  7. #define DMECOLLISIONMODEL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "datamodel/dmelement.h"
  12. #include "datamodel/dmattributevar.h"
  13. //-----------------------------------------------------------------------------
  14. // Forward Declarations
  15. //-----------------------------------------------------------------------------
  16. class CDmeModel;
  17. class CDmeDag;
  18. //-----------------------------------------------------------------------------
  19. // A class representing an attachment point
  20. //-----------------------------------------------------------------------------
  21. class CDmeCollisionModel : public CDmElement
  22. {
  23. DEFINE_ELEMENT( CDmeCollisionModel, CDmElement );
  24. public:
  25. CDmaVar< float > m_flMass;
  26. CDmaVar< bool > m_bAutomaticMassComputation;
  27. CDmaVar< float > m_flInertia;
  28. CDmaVar< float > m_flDamping;
  29. CDmaVar< float > m_flRotationalDamping;
  30. CDmaVar< float > m_flDrag;
  31. CDmaVar< int > m_nMaxConvexPieces;
  32. CDmaVar< bool > m_bRemove2D;
  33. CDmaVar< float > m_flWeldPositionTolerance;
  34. CDmaVar< float > m_flWeldNormalTolerance;
  35. CDmaVar< bool > m_bConcave;
  36. CDmaVar< bool > m_bForceMassCenter;
  37. CDmaVar< Vector > m_vecMassCenter;
  38. CDmaVar< bool > m_bAssumeWorldSpace;
  39. CDmaString m_SurfaceProperty;
  40. };
  41. #endif // DMECOLLISIONMODEL_H