added reset method, added gravity vector