update() called only if the object moved in that frame