how to determine if the object is in distance and displacement motion​