[Opal-commits] opal/samples/playpen main.cpp,1.8,1.9
Status: Inactive
Brought to you by:
tylerstreeter
|
From: tylerstreeter <tyl...@us...> - 2005-04-12 21:23:53
|
Update of /cvsroot/opal/opal/samples/playpen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4002/samples/playpen Modified Files: main.cpp Log Message: added a Simulator option to change the "max correcting velocity" for penetrating objects Index: main.cpp =================================================================== RCS file: /cvsroot/opal/opal/samples/playpen/main.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** main.cpp 12 Apr 2005 06:46:42 -0000 1.8 --- main.cpp 12 Apr 2005 21:23:44 -0000 1.9 *************** *** 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. --- 200,203 ---- |