Team Fortress 2 Source Code as on 22/4/2020
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.

54 lines
1.6 KiB

  1. //========= Copyright 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< float > m_flRollingDrag;
  32. CDmaVar< int > m_nMaxConvexPieces;
  33. CDmaVar< bool > m_bRemove2D;
  34. CDmaVar< bool > m_bConcavePerJoint;
  35. CDmaVar< float > m_flWeldPositionTolerance;
  36. CDmaVar< float > m_flWeldNormalTolerance;
  37. CDmaVar< bool > m_bConcave;
  38. CDmaVar< bool > m_bForceMassCenter;
  39. CDmaVar< Vector > m_vecMassCenter;
  40. CDmaVar< bool > m_bNoSelfCollisions;
  41. CDmaVar< bool > m_bAssumeWorldSpace;
  42. CDmaString m_SurfaceProperty;
  43. };
  44. #endif // DMECOLLISIONMODEL_H