aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/contrib/DotNetManaged/World.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ode-0.9/contrib/DotNetManaged/World.h')
-rw-r--r--libraries/ode-0.9/contrib/DotNetManaged/World.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/libraries/ode-0.9/contrib/DotNetManaged/World.h b/libraries/ode-0.9/contrib/DotNetManaged/World.h
new file mode 100644
index 0000000..c4c60e5
--- /dev/null
+++ b/libraries/ode-0.9/contrib/DotNetManaged/World.h
@@ -0,0 +1,67 @@
1#pragma once
2
3#include "CommonMgd.h"
4
5namespace ODEManaged
6{
7 __gc public class World
8 {
9 public:
10
11 //Constructor
12
13 World(void);
14
15
16 //Destructor
17
18 ~World(void);
19
20
21 // Methods
22
23 dWorldID Id(void);
24
25 void SetGravity(double x, double y, double z);
26
27 //Overloaded GetGravity
28 Vector3 GetGravity(void);
29 void GetGravity(double gravity __gc[]);
30
31 void Step(double stepSize);
32
33
34 //Properties
35
36 //Constraint Force Mixing
37 __property void set_CFM(double cfm)
38 {
39 dWorldSetCFM(this->_id,cfm);
40 }
41
42 __property double get_CFM(void)
43 {
44 return dWorldGetCFM(this->_id);
45 }
46
47
48 //Error Reduction Parameter
49 __property void set_ERP(double erp)
50 {
51 dWorldSetERP(this->_id,erp);
52 }
53
54 __property double get_ERP(void)
55 {
56 return dWorldGetERP(this->_id);
57 }
58
59
60 private:
61
62 dWorldID _id;
63
64 };
65
66}
67