Update of /cvsroot/simspark/simspark/spark/oxygen/physicsserver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15585/physicsserver
Modified Files:
body_c.cpp
Log Message:
Index: body_c.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/oxygen/physicsserver/body_c.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** body_c.cpp 5 Dec 2005 21:16:49 -0000 1.1
--- body_c.cpp 14 Apr 2006 16:27:57 -0000 1.2
***************
*** 359,362 ****
--- 359,377 ----
}
+ FUNCTION(Body,translateMass)
+ {
+ Vector3f inV;
+
+ if (
+ (in.GetSize() == 0) ||
+ (! in.GetValue(in.begin(), inV))
+ )
+ {
+ return false;
+ }
+
+ obj->TranslateMass(inV);
+ return true;
+ }
void CLASS(Body)::DefineClass()
***************
*** 383,385 ****
--- 398,401 ----
DEFINE_FUNCTION(setPosition);
DEFINE_FUNCTION(setMassParameters);
+ DEFINE_FUNCTION(translateMass);
}
|