Distance between two colliders

I see that there is
World.CalculateDistance to find the distance between a collider and the (closest / all) colliders in the world.
But, is there a way to find the distance between two specific colliders given their transforms?

Similar to Physics.ComputePenetration() or Collider.ClosestPoint ?

Collider.CalculateDistance
For example if you have colliderA, colliderB with transformA, transformB respectively, then you can call colliderA.CalculateDistance with ColliderDistanceInput.Collider = colliderB and ColliderDistanceInput.Transform = transformA^-1 * transformB

1 Like