Added gravity, checks for whether on platform.