It can go either of two ways, the court deem that you were driving/cycling "with negligence" meaning that you could have dodged the ped or stopped in time to avoid a collision.
Or you were driving/cycling with "due care", you couldn't avoid the accident, it wasn't your fault, but because the ped hasn't broken any laws, even though they caused the accident, @jb000 unfortunately can't claim damages, but I'm glad you're ok mate.
Only motorists/cyclists are accountable if an accident occurs with a ped.
Only motorists/cyclists are accountable if an accident occurs with a ped.