[Opal-commits] opal/samples/playpen main.cpp,1.7,1.8
Status: Inactive
Brought to you by:
tylerstreeter
|
From: tylerstreeter <tyl...@us...> - 2005-04-12 06:47:23
|
Update of /cvsroot/opal/opal/samples/playpen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4177/samples/playpen Modified Files: main.cpp Log Message: added a rotational stability fix for ODESolids Index: main.cpp =================================================================== RCS file: /cvsroot/opal/opal/samples/playpen/main.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** main.cpp 6 Apr 2005 04:48:43 -0000 1.7 --- main.cpp 12 Apr 2005 06:46:42 -0000 1.8 *************** *** 200,203 **** --- 200,213 ---- } + if(mInputDevice->isKeyDown(KC_F)) + { + opal::Solid* s = getPhysicalEntity("object0")->getSolid(); + opal::Force f; + f.singleStep = true; + f.type = opal::GLOBAL_TORQUE; + f.vec.set(100, 0, 0); + s->addForce(f); + } + // Create various types of objects when the number keys are // pressed. |