Can you change collision for single bone at runtime?

A quick review of the USkeletalMesh api doesn’t include much on collision. USkeletalMesh components do have an associated UPhysicsAsset, and that has some methods related to collision, but nothing that is particularly suited to you.

  1. A dirty way to have what you want is to only have complex collision through the skeletal mesh, and hide the specific bones you want by setting the scale to zero. Then have separate skeletal mesh components appear where hidden bones where. These separate skel meshes don’t have collision.

  2. A clean way would be to have 2 separate UPhysicsAsset for the whole skel mesh, and change between them as needed.

However, I believe this all way too complicated, and its probably easier to consider the bones in the FHitResults. (I assume you are generating a result list from an sweep.). Its better to be cognizant about how you are handling your collisions than engineering a solution that requires you to changing between UPhysicsAssets…