aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/contrib/DotNetManaged/World.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ode-0.9/contrib/DotNetManaged/World.cpp')
-rw-r--r--libraries/ode-0.9/contrib/DotNetManaged/World.cpp74
1 files changed, 0 insertions, 74 deletions
diff --git a/libraries/ode-0.9/contrib/DotNetManaged/World.cpp b/libraries/ode-0.9/contrib/DotNetManaged/World.cpp
deleted file mode 100644
index beab21a..0000000
--- a/libraries/ode-0.9/contrib/DotNetManaged/World.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
1#include "StdAfx.h"
2
3#include <ode/ode.h>
4#include "World.h"
5
6namespace ODEManaged
7{
8
9 //Constructor
10
11 World::World(void)
12 {
13 /*dWorldID _temp = dWorldCreate();
14 _id = _temp;*/
15 _id = dWorldCreate();
16 }
17
18
19 //Destructor
20
21 World::~World(void)
22 {
23 dWorldDestroy(this->_id);
24 }
25
26
27 //Methods
28
29 //Id
30 dWorldID World::Id()
31 {
32 return _id;
33 }
34
35
36 //SetGravity
37 void World::SetGravity(double x, double y, double z)
38 {
39 dWorldSetGravity(this->_id, x, y, z);
40 }
41
42
43 //Overloaded GetGravity
44 Vector3 World::GetGravity(void)
45 {
46 Vector3 retVal;
47 dVector3 temp;
48 dWorldGetGravity(this->_id, temp);
49 retVal.x = temp[0];
50 retVal.y = temp[1];
51 retVal.z = temp[2];
52 return retVal;
53 }
54
55 void World::GetGravity(double gravity __gc[])
56 {
57 dVector3 temp;
58 dWorldGetGravity(this->_id, temp);
59 gravity[0] = temp[0];
60 gravity[1] = temp[1];
61 gravity[2] = temp[2];
62 }
63
64
65 //Step
66 void World::Step(double stepSize)
67 {
68 dWorldStep(this->_id, stepSize);
69 }
70
71}
72
73
74