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.

46 lines
1.8 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Dme version of a collisionmodel
  4. //
  5. //===========================================================================//
  6. #include "mdlobjects/dmecollisionmodel.h"
  7. #include "datamodel/dmelementfactoryhelper.h"
  8. // memdbgon must be the last include file in a .cpp file!!!
  9. #include "tier0/memdbgon.h"
  10. //-----------------------------------------------------------------------------
  11. // Expose this class to the scene database
  12. //-----------------------------------------------------------------------------
  13. IMPLEMENT_ELEMENT_FACTORY( DmeCollisionModel, CDmeCollisionModel );
  14. //-----------------------------------------------------------------------------
  15. // Purpose:
  16. //-----------------------------------------------------------------------------
  17. void CDmeCollisionModel::OnConstruction()
  18. {
  19. m_flMass.Init( this, "mass" );
  20. m_bAutomaticMassComputation.Init( this, "automaticMassComputation" );
  21. m_flInertia.Init( this, "inertia" );
  22. m_flDamping.Init( this, "damping" );
  23. m_flRotationalDamping.Init( this, "rotationalDamping" );
  24. m_flDrag.Init( this, "drag" );
  25. m_flRollingDrag.Init( this, "rollingDrag" );
  26. m_nMaxConvexPieces.Init( this, "maxConvexPieces" );
  27. m_bRemove2D.Init( this, "remove2d" );
  28. m_bConcavePerJoint.Init( this, "concavePerJoint" );
  29. m_flWeldPositionTolerance.Init( this, "weldPositionTolerance" );
  30. m_flWeldNormalTolerance.Init( this, "weldNormalTolerance" );
  31. m_bConcave.Init( this, "concave" );
  32. m_bForceMassCenter.Init( this, "forceMassCenter" );
  33. m_vecMassCenter.Init( this, "massCenter" );
  34. m_bNoSelfCollisions.Init( this, "noSelfCollisions" );
  35. m_bAssumeWorldSpace.Init( this, "assumeWorldSpace" );
  36. m_SurfaceProperty.InitAndSet( this, "surfaceProperty", "default" );
  37. }
  38. void CDmeCollisionModel::OnDestruction()
  39. {
  40. }