Smooth Edge Collision param in c++

In the editor, we can set Collision->Advanced->SmoothEdgeCollision->true

I can’t find this anywhere in the C++ API. I’d like to apply it to a dynamically instantiated character so editor flag is no bueno.

You need to access the physics container inside of the component via GetBodyInstance()
For example in a character.
for capsule:
GetCapsuleComponent()->GetBodyInstance()->SetSmoothEdgeCollisionsEnabled(true);
for mesh:
GetMesh()->GetBodyInstance()->SetSmoothEdgeCollisionsEnabled(true);

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.