[c++] Change Friction

Hi guys,

I was creating custom pawn and got to the point that it works, but that pawn does not have any friction with the ground.

Question: How do I change the friction for USphereComponent in cpp?

I have found the execSetPhysMaterialOverride but I cant figure out the input params.
I don’t care if it creates its own physics material on the fly or take existing physics material from a file.

Thanks,
Crispy

Not really sure of your overall context here. Can you use the CharacterMovementComponent? It has a bunch of friction settings.

My pawn is walking of sphere (planet) and I found most of the CharacterMovementComponent useless for this situation. But I am gonna take a look again. Thanks