Hi prof, how about this?


public double getax (double dx,double v) {

//dx = x+carSize/2-xbumperbottom;
//if(!stopped&&Math.abs(dx)>0)
if(Math.abs(dx)>0)
{
return (TM*g/MI*Math.sin(angle)+thrust/MI); // not stopped and dx >0 return the force on the car
}
else
{
 stopped=true;
 dx =0;
 v =0;
 }
return 1;
}

it is not working. what should i change.
;D