aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/contrib/DotNetManaged/JointFixed.cpp
diff options
context:
space:
mode:
authordan miller2007-10-21 08:36:32 +0000
committerdan miller2007-10-21 08:36:32 +0000
commit2f8d7092bc2c9609fa98d6888106b96f38b22828 (patch)
treeda6c37579258cc965b52a75aee6135fe44237698 /libraries/ode-0.9/contrib/DotNetManaged/JointFixed.cpp
parent* Committing new PolicyManager based on an ACL system. (diff)
downloadopensim-SC_OLD-2f8d7092bc2c9609fa98d6888106b96f38b22828.zip
opensim-SC_OLD-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.gz
opensim-SC_OLD-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.bz2
opensim-SC_OLD-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.xz
libraries moved to opensim-libs, a new repository
Diffstat (limited to 'libraries/ode-0.9/contrib/DotNetManaged/JointFixed.cpp')
-rw-r--r--libraries/ode-0.9/contrib/DotNetManaged/JointFixed.cpp67
1 files changed, 0 insertions, 67 deletions
diff --git a/libraries/ode-0.9/contrib/DotNetManaged/JointFixed.cpp b/libraries/ode-0.9/contrib/DotNetManaged/JointFixed.cpp
deleted file mode 100644
index afe9222..0000000
--- a/libraries/ode-0.9/contrib/DotNetManaged/JointFixed.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
1#include "StdAfx.h"
2
3#include <ode/ode.h>
4#include "jointfixed.h"
5
6namespace ODEManaged
7{
8
9 //Constructors
10
11 JointFixed::JointFixed(void) : Joint(){}
12
13
14 JointFixed::JointFixed(World &world)
15 {
16 if(this->_id) dJointDestroy(this->_id);
17 _id = dJointCreateFixed(world.Id(),0);
18 }
19
20
21 JointFixed::JointFixed(World &world, JointGroup &jointGroup)
22 {
23 if(this->_id) dJointDestroy(this->_id);
24 _id = dJointCreateFixed(world.Id(), jointGroup.Id());
25 }
26
27
28 //Destructor
29
30 JointFixed::~JointFixed(void){}
31
32
33 //Methods
34
35 //Overloaded Create
36 void JointFixed::Create(World &world, JointGroup &jointGroup)
37 {
38 if(this->_id) dJointDestroy(this->_id);
39 _id = dJointCreateFixed(world.Id(), jointGroup.Id());
40 }
41
42 void JointFixed::Create(World &world)
43 {
44 if(this->_id) dJointDestroy(this->_id);
45 _id = dJointCreateFixed(world.Id(), 0);
46 }
47
48
49 //Overloaded Attach
50 void JointFixed::Attach(Body &body1, Body &body2)
51 {
52 dJointAttach(this->_id, body1.Id(), body2.Id());
53 }
54
55 void JointFixed::Attach(Body &body1)
56 {
57 dJointAttach(this->_id, body1.Id(), 0);
58 }
59
60
61 //Fixed
62 void JointFixed::SetFixed(void)
63 {
64 dJointSetFixed(this->_id);
65 }
66
67}