diff options
author | dan miller | 2007-10-19 04:28:53 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 04:28:53 +0000 |
commit | 0fc46fc9590912bf6925c899edd02d7a2cdf5f79 (patch) | |
tree | 51bcae7a1b8381a6bf6fd8025a7de1e30fe0045d /libraries/ode-0.9\/contrib/DotNetManaged/Joint.cpp | |
parent | small bit of refactoring (diff) | |
download | opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.zip opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.tar.gz opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.tar.bz2 opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.tar.xz |
adding ode source to /libraries
Diffstat (limited to 'libraries/ode-0.9\/contrib/DotNetManaged/Joint.cpp')
-rwxr-xr-x | 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 100755 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 | } | ||