blob: c4c60e5438e4489360419f9a6c9b57212b4f7dad (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#pragma once
#include "CommonMgd.h"
namespace ODEManaged
{
__gc public class World
{
public:
//Constructor
World(void);
//Destructor
~World(void);
// Methods
dWorldID Id(void);
void SetGravity(double x, double y, double z);
//Overloaded GetGravity
Vector3 GetGravity(void);
void GetGravity(double gravity __gc[]);
void Step(double stepSize);
//Properties
//Constraint Force Mixing
__property void set_CFM(double cfm)
{
dWorldSetCFM(this->_id,cfm);
}
__property double get_CFM(void)
{
return dWorldGetCFM(this->_id);
}
//Error Reduction Parameter
__property void set_ERP(double erp)
{
dWorldSetERP(this->_id,erp);
}
__property double get_ERP(void)
{
return dWorldGetERP(this->_id);
}
private:
dWorldID _id;
};
}
|