update engine of gravity