Hi,
I have a SweepMulitByChannel raycast that I want to rotate with the pawns rotation that it is attached to. It currently only stays in one rotation. How would I get it to rotate with the pawn?
Here’s the raycast code
bool hitSuccess = GetWorld()->SweepMultiByChannel(Hit, Location, Location, FQuat::Identity, ECollisionChannel::ECC_GameTraceChannel1, CollisionShape, Params);
DrawDebugBox(GetWorld(), Location, CollisionShape.GetExtent(), FColor::Red, false);