Added velocity function to bodies