Added setPositionSpeed function to control speed of sphere