add joint velocity and acceleration constraint