Added setVelocityByTile method.