nicholas-maltbie / OpenKCC

Open Source Kinematic Character Controller for Unity
http://nickmaltbie.com/OpenKCC/
MIT License
642 stars 60 forks source link

KCC Movement Engine via Floating Capsule #189

Open nicholas-maltbie opened 1 year ago

nicholas-maltbie commented 1 year ago

Add a KCC Movement Engine that supports movement via a floating capsule.

Have the capsule float a specific distance off the ground and it should create a capsule collider for this operation.

Given this expected distance to float off the ground, do a sphere cast downwards from the player location and lerp the position up/down as needed to move the player up or down as long as they are grounded.

This should handle stairs much more smoothly.