aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp
blob: 925751ffd6bf1d2776bbf682f15558f22489e671 (plain)
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
#include "StdAfx.h"

#include <ode/ode.h>
#include "jointgroup.h"

namespace ODEManaged
{

	//Constructors

		JointGroup::JointGroup(void)
		{	
			_id=0;
		}

		JointGroup::JointGroup (int maxSize)
		{
			_id = dJointGroupCreate(maxSize);
		}


	//Destructor

		JointGroup::~JointGroup(void)
		{
			dJointGroupDestroy(this->_id);
		}

	
	//Methods

		//ID
		dJointGroupID JointGroup::Id()
		{
			return _id;
		}


		//Create
		void JointGroup::Create (int maxSize)
		{
			if(_id) dJointGroupDestroy(_id);
			_id = dJointGroupCreate(maxSize);
		}


		//Empty
		void JointGroup::Empty (void)
		{
			dJointGroupEmpty(this->_id);
		}

}