How to use this lecture with Apex plugin

Hi, I’m trying to use the grab function with apex destructible meshes, but the log is not reporting any interactions. I’ve added ECC_Destructible

FHitResult Hit;

	FCollisionQueryParams TraceParams(FName(TEXT("")), false, GetOwner());

	GetWorld()->LineTraceSingleByObjectType(
		OUT Hit,
		PlayerViewPointLocation,
		LineTraceEnd,
		FCollisionObjectQueryParams(ECollisionChannel::ECC_PhysicsBody && ECollisionChannel::ECC_Destructible),
		TraceParams
	);
	
	AActor* ActorHit = Hit.GetActor();

	if (ActorHit)
	{
		UE_LOG(LogTemp, Warning, TEXT("Linha tocou o obj %s"), *(ActorHit->GetName()))
	}

Privacy & Terms