Crash in UCharacterMovementComponent::CapsuleTouched() overlapping geometry collection

UCharacterMovementComponent::CapsuleTouched() casts OtherComp to USkinnedMeshComponent*. But it might be a UGeometryCollectionComponent (or in principle something else as well), in which case it crashes.

By the way, I also hit this with a geometry collection with Object Type = Static. For some reason it still returned true from IsAnySimulatingPhysics(), not sure wether that’s expected.

[Attachment Removed]

Steps to Reproduce
Create a geometry collection, enable Generate Overlap Events, and set Collision Profile to Overlap All.

Play in editor as a character and run into the geometry collection.

[Attachment Removed]

Thanks Max,

Bug raised here, and triaged out to the dev team - https://issues.unrealengine.com/issue/UE\-392989

Best

Geoff Stacey

Developer Relations

EPIC Games

[Attachment Removed]