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