In order to control the 3D characters in the 3D world in the normal movement, steering, there are generally two kinds of situations:
- 1. Use character animations to control the movement of characters
- 2. Use a script to control the movement of people, turn
For scenario I:
- Animator components tick the Apply Root Motion option
- The character animation must have the corresponding displacement
- The character needs to hang up a rigidbody component to do the corresponding physical collision detection
- People need to hang a collision box, do collision detection range customization
For scenario Two:
- Animator components Remove the Apply Root motion option
- Character animations have no displacement can be
- People don't need to mount Rigidbody components
- The character needs to mount a charactor Controller component, to do the corresponding collision detection
- Use the script to set the Charactor controller component to control the character movement rotation.
3D Character Movement Control realization Scheme