I’m trying to attach a JointAMotor to a jointball. Problem is, histop/lostop doesnt work it appears (im prop doing it wrong)…
I can start the motor but the joints never stops to rotate. Heres the code. Any suggestions ?
JointBall j = new JointBall(name,world);
JointAMotor m = new JointAMotor(“m:”+name,world);
m.setNumAxes(3);
m.setAxis(0,0,1,0,0);
m.setAxis(1,0,0,1,0);
m.setAxis(2,0,0,0,1);
m.setAngle(0,0);
m.setAngle(1,0);
m.setAngle(2,0);
float a = 0.1f;
//stop angles
m.setParam(org.odejava.ode.OdeConstants.dParamHiStop,a);
m.setParam(org.odejava.ode.OdeConstants.dParamLoStop,-a);
m.setParam(org.odejava.ode.OdeConstants.dParamHiStop2,a);
m.setParam(org.odejava.ode.OdeConstants.dParamLoStop2,-a);
m.setParam(org.odejava.ode.OdeConstants.dParamHiStop3,a);
m.setParam(org.odejava.ode.OdeConstants.dParamLoStop3,-a);
//forces,vel
float v = 0.1;
float f = 0.1f;
m.setParam(org.odejava.ode.OdeConstants.dParamVel,v);
m.setParam(org.odejava.ode.OdeConstants.dParamVel2,v);
m.setParam(org.odejava.ode.OdeConstants.dParamVel3,v);
m.setParam(org.odejava.ode.OdeConstants.dParamFMax,f);
m.setParam(org.odejava.ode.OdeConstants.dParamFMax2,f);
m.setParam(org.odejava.ode.OdeConstants.dParamFMax3,f);
m.attach(j.getBody1(),j.getBody2());