aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/contrib/DotNetManaged/Space.cpp
blob: c9a7e190f6d7501317c819829aac2077496a91f5 (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 "Space.h"
#include "TEST.h"

namespace ODEManaged
{

	//Constructor

		Space::Space(void)
		{ 
			_id = dSimpleSpaceCreate();
		}

		Space::Space(int minlevel, int maxlevel)
		{ 
			_id = dHashSpaceCreate();
			dHashSpaceSetLevels(this->_id, minlevel, maxlevel);
		}

	
	//Destructor

		Space::~Space(void)
		{
			dSpaceDestroy(this->_id);
		}


	//Methods

		//Id
		dSpaceID Space::Id()
		{
			return _id;
		}


		//Collide
		void Space::Collide(void *data, dNearCallback *callback)
		{		
			dSpaceCollide(this->_id, data, callback);
		}







}