diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ode-0.9/contrib/DotNetManaged/Joint.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libraries/ode-0.9/contrib/DotNetManaged/Joint.cpp b/libraries/ode-0.9/contrib/DotNetManaged/Joint.cpp new file mode 100644 index 0000000..e2d8de6 --- /dev/null +++ b/libraries/ode-0.9/contrib/DotNetManaged/Joint.cpp | |||
@@ -0,0 +1,35 @@ | |||
1 | #include "StdAfx.h" | ||
2 | |||
3 | #include <ode/ode.h> | ||
4 | #include "joint.h" | ||
5 | #include "CommonMgd.h" | ||
6 | #include "world.h" | ||
7 | |||
8 | namespace ODEManaged | ||
9 | { | ||
10 | |||
11 | //Constructor | ||
12 | |||
13 | Joint::Joint(void) | ||
14 | { | ||
15 | _id=0; | ||
16 | } | ||
17 | |||
18 | |||
19 | //Destructor | ||
20 | |||
21 | Joint::~Joint(void) | ||
22 | { | ||
23 | dJointDestroy(this->_id); | ||
24 | } | ||
25 | |||
26 | |||
27 | //Methods | ||
28 | |||
29 | //Id | ||
30 | dJointID Joint::Id(void) | ||
31 | { | ||
32 | return _id; | ||
33 | } | ||
34 | |||
35 | } | ||