controller gravity and speed