How to do 3D Sonic / Rollin' Rascals Physics

Can someone assist me in trying figure out sonic’s momentum in a 3D space, specifically the ability to stick to a sloped surface. I’ve been searching for answers for weeks and it almost feels taboo for people to even mention it. I understand it’s a complicated system but theres nothing to even help get started on wrapping my head around it.

I have followed pretty much all the youtube tutorials and I tried tearing apart a sonic framework kit but due to the interlocking systems I can’t isolate the mechanic without it just breaking entirely.

I’m doing this with blueprint since I can’t code in C# and I get that makes this 10x harder but literally anything at this point would be super appreciated.

I imagine you’ve gotten this far, but here is a basic tutorial for a ball:

Roll a Ball | Unreal Engine 5 Tutorial | With & Without Physics

With that, you can mimic the custom gravity concept to stick to any angle of slope:

Unreal Engine 5 Tutorial - Custom Gravity UE5.4 Preview

Or, just add trigger boxes/volumes over surfaces you wish to stick to and apply an impulse (or force) to your player, downward and perpendicular the floor on overlap. You might need to disable physics and/or constrain movement to a certain axis or a spline to prevent unwanted sliding. This might be trickier with 3D.

Lastly, you could just use foot IK as usual. Make a virtual or real bone that only affects the root but is always pulled to the ground via the normal foot IK control rig method. Essentially, no matter what the momentum/inertia, the root will follow ‘Z’ location of the ‘VB_ik_root’ (or whatever you name it) when not jumping or wheresoever you disable it. This will require understanding what makes foot IK function and adapting it to your needs.

Distilling the above ideas down, you could just add a ‘Scene Component’ located at the base of your capsule, which on “activation” does a line trace downwards and runs a ‘Set World Location’, targeting your ‘Capsule Component’ on tick or timer. You’ll have to add the capsule half-height to the hit location to ensure the capsule isn’t submerged into the ground. This may be crude but likely quicker to setup than the control rig.

Just throwing out ideas.