disable dead code

This commit is contained in:
erwincoumans
2016-11-10 15:44:03 -08:00
committed by GitHub
parent 02c781e56b
commit fd90589cc2

View File

@@ -4083,6 +4083,7 @@ void PhysicsServerCommandProcessor::createDefaultRobotAssets()
} }
//directly set the position of the links, only for debugging IK, don't use this method! //directly set the position of the links, only for debugging IK, don't use this method!
#if 0
if (0) if (0)
{ {
for (int i=0;i<mb->getNumLinks();i++) for (int i=0;i<mb->getNumLinks();i++)
@@ -4091,6 +4092,7 @@ void PhysicsServerCommandProcessor::createDefaultRobotAssets()
mb->setJointPosMultiDof(i,&desiredPosition); mb->setJointPosMultiDof(i,&desiredPosition);
} }
} else } else
#endif
{ {
int numMotors = 0; int numMotors = 0;
//find the joint motors and apply the desired velocity and maximum force/torque //find the joint motors and apply the desired velocity and maximum force/torque