In the editor there are several collision presets i.e.“Character Mesh”, “Pawn” etc. I was wondering how would I define a collision preset in C++.
via SetCollisionProfileName(FName InCollisionProfileName) → see API Reference
and UCollisionProfile → see API Reference
Usage example:
Body->SetCollisionProfileName(UCollisionProfile::NoCollision_ProfileName);
UCollisionProfile defines some of the Profiles that are selectable in blueprint, although apparently not all of them, including “Character Mesh”, so maybe someone can chime in and explain the differences.