Hello,
I am generating splines dynamically during runtime. The issue is, I can’t seem to get overlap to trigger even after setting both objects to overlap. Here is my code
USplineMeshComponent* SplineMesh = SurfDataArray[LoopIndex].SplineMesh = NewObject<USplineMeshComponent>(this);
SplineMesh->SetupAttachment(RootComponent);
SplineMesh->SetMobility(EComponentMobility::Stationary);
SplineMesh->SetStaticMesh(SurfElementMesh);
SplineMesh->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
SplineMesh->SetCollisionResponseToAllChannels(ECR_Overlap);
SplineMesh->SetCollisionResponseToChannel(ECC_Pawn, ECR_Block);
I have set the collision type to overlap on both objects yet no matter what I do, I simply can’t get it to overlap with other staticmeshes such as walls and etc. Please help. Thank you.