How to get direction using Physics.SphereCast ?

The question is very simple, but it makes me mad, just need to get the direction for game object which is under character controller. Is there any example to illustrate how to get the direction?


There is also transform.right, and transform.up.

-transform.forward is backward. -transform.right is left.