Creating a method that sets a collider

Because of the fact that a transform can be scaled or that the position of the transform can be offset compared to the center of the collider, it’s really not reliable to call simply set the transform.position to a value.

Generally when playing with physics it would be much more reliable to set the Collider’s lowest middle point to a target position.

So I’ve been trying to create a method that will put the collider where I want to no matter his transform position’s offset but I can’t seem to succeed.

Collider.SetAtPosition(this Collider _col, Vector3 _position)
{
      // TODO
}

5232551--521948--upload_2019-12-1_13-18-5.png

Why is line 3 empty?

Because I don’t know how to make that method and it should achieve what I was asking for, I guess I should have been clearer.