okay thanks. I want that when an object passes through a certain position x , stop in this position , for example :
if x <2 --> object has speed
if x = 2, the speed of the object is 0 and the object position is 2.
The problem is that if the object has acceleration and deceleration the object never stop in x=2.