diff options
Diffstat (limited to 'libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp')
-rw-r--r-- | libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp b/libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp deleted file mode 100644 index 925751f..0000000 --- a/libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | #include "StdAfx.h" | ||
2 | |||
3 | #include <ode/ode.h> | ||
4 | #include "jointgroup.h" | ||
5 | |||
6 | namespace ODEManaged | ||
7 | { | ||
8 | |||
9 | //Constructors | ||
10 | |||
11 | JointGroup::JointGroup(void) | ||
12 | { | ||
13 | _id=0; | ||
14 | } | ||
15 | |||
16 | JointGroup::JointGroup (int maxSize) | ||
17 | { | ||
18 | _id = dJointGroupCreate(maxSize); | ||
19 | } | ||
20 | |||
21 | |||
22 | //Destructor | ||
23 | |||
24 | JointGroup::~JointGroup(void) | ||
25 | { | ||
26 | dJointGroupDestroy(this->_id); | ||
27 | } | ||
28 | |||
29 | |||
30 | //Methods | ||
31 | |||
32 | //ID | ||
33 | dJointGroupID JointGroup::Id() | ||
34 | { | ||
35 | return _id; | ||
36 | } | ||
37 | |||
38 | |||
39 | //Create | ||
40 | void JointGroup::Create (int maxSize) | ||
41 | { | ||
42 | if(_id) dJointGroupDestroy(_id); | ||
43 | _id = dJointGroupCreate(maxSize); | ||
44 | } | ||
45 | |||
46 | |||
47 | //Empty | ||
48 | void JointGroup::Empty (void) | ||
49 | { | ||
50 | dJointGroupEmpty(this->_id); | ||
51 | } | ||
52 | |||
53 | } | ||