Character Movement is a set of Rigidbody based movement components. It supports:
- 2D and 3D movement
- all physics (characters can be launched by setting velocity or adding force)
- moving floors/platforms (characters match speed with velocity of rigidbody floor surfaces)
- navigation using
NavMeshAgentto find paths - max slope angle for standing/moving
- "coyote time" allows for jumping just after leaving platforms
Unity 2021.1+. Will likely work on earlier versions but this is the version I tested with.
Use the Package Manager and use Add package from git URL, using the following:
https://github.com/qhenshaw/CharacterMovement.git
Install any of the demo samples for an example of using the CharacterMovement components to drive player movement using the InputSystem and Cinemachine.
Current samples available:
- 1st person
- 3rd person
- Top-down 3D
- 2D platformer
- 2.5 platformer (3D character/level with 2D physics)
- 2D hybrid (2D character/3D level with 3D physics)