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!