How do i use maskfilter with skeletalmesh? I’m trying to make team based shooter game and i want to bullet pass through teammates but linetrace IgnoreMask doesn’t ignore team skeletalmeshes
nwm, i figured it out like so:
UPhysicsAsset* upa;
upa = GetMesh()->GetPhysicsAsset();
for (auto sbs : upa->SkeletalBodySetups) {
sbs->DefaultInstance.SetMaskFilter((int)Team);
}
1 Like
also if anobody needs this you also should probably call: upa->RefreshPhysicsAssetChange();
Thank you. You just save my day!