transmission is probably ok as it's on left side, ie passenger side on a RHD car.
reason for oil light could be that the wiring loom was damaged on the impact. or just coincidence and your pressure switch or oil pump was on it's way out and the knock just finished it off.
difficult to tell without having a look with my own eyes