Exemple #1
0
 // dReal dJointGetLMotorParam( dJoint j, int parameter )
 public double dJointGetLMotorParam(PARAM_N parameter) {
   int anum = parameter.toGROUP().getIndex(); // val() >> 8;
   if (anum < 0) anum = 0;
   if (anum > 2) anum = 2;
   // parameter &= 0xff;
   return limot[anum].get(parameter.toSUB());
 }
Exemple #2
0
 // void dJointSetLMotorParam( dJoint j, int parameter, dReal value )
 public void dJointSetLMotorParam(PARAM_N parameter, double value) {
   int anum = parameter.toGROUP().getIndex(); // val() >> 8;  //TODO use >>> ????
   if (anum < 0) anum = 0;
   if (anum > 2) anum = 2;
   // parameter &= 0xff;
   limot[anum].set(parameter.toSUB(), value);
 }