Skip to content
Snippets Groups Projects
Commit 30d4df7c authored by David Gilbert's avatar David Gilbert :bug:
Browse files

doc(navigation): Documents collision overlap trace in CollisionHandlingMovement

parent 153ce414
No related branches found
No related tags found
2 merge requests!80UE5.3-2023.1-rc2,!77ContentExample-themed ToolkitExamples map.
Pipeline #372836 passed
...@@ -342,6 +342,10 @@ TOptional<FVector> UCollisionHandlingMovement::GetOverlapResolveDirection() cons ...@@ -342,6 +342,10 @@ TOptional<FVector> UCollisionHandlingMovement::GetOverlapResolveDirection() cons
{ {
TArray<UPrimitiveComponent*> OverlappingComponents; TArray<UPrimitiveComponent*> OverlappingComponents;
TArray<TEnumAsByte<EObjectTypeQuery>> traceObjectTypes; TArray<TEnumAsByte<EObjectTypeQuery>> traceObjectTypes;
// Ideally we would overlap with ECC_Visibility, but there is no object type this can be converted to that I know
// of. This returns everything, even triggers etc that are *not* visible, which is why we further check for a
// visibility trace and blocking hits.
traceObjectTypes.Add(EObjectTypeQuery::ObjectTypeQuery_MAX); traceObjectTypes.Add(EObjectTypeQuery::ObjectTypeQuery_MAX);
UKismetSystemLibrary::CapsuleOverlapComponents(GetWorld(), CapsuleColliderComponent->GetComponentLocation(), UKismetSystemLibrary::CapsuleOverlapComponents(GetWorld(), CapsuleColliderComponent->GetComponentLocation(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment