Help Wanted Please!How to make charactor walk on a sphere using root motion?

Have tried almost a day,using the “ThirdPersonCharacter.cs” in the Standard Assets.
I do these things:
1.off the rigibody gravity of charactor
2.set a force refer to the planet by this way
gravityForce =Planet.position - transform.position;
m_Rigidbody.AddForce(gravityForce );
3.set the direction
this.transform.up=-1*gravityForce.normaliezd;

The question is in the Standard Assets,they move the charactor by root motion,
instead of rigibody.velocity for which my charactor can’t move !
I tried to set the Animator.bodyrotation=this.transform.rotation but it dosent walk;
Can anyone help me out please!

6892742--806183--upload_2021-3-2_16-29-52.png

Fixed
1st
dont use transform.up directly