Line | |
---|
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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.