FCollisionQueryParams
2021. 3. 25. 07:49
FCollisionQueryParams
FCollisionQueryParams IgnoreOwner = FCollisionQueryParams::DefaultQueryParam;
IgnoreOwner.AddIgnoredActor(GetOwner());
GetWorld()->LineTraceSingleByChannel(HitResult, Location, End, ECC_GameTraceChannel1, IgnoreOwner);
AddIgnoreActor로 특정 액터를 트레이스 대상에서 제외시킬수있다.
자기자신이나 총의 주인등을 제외시킬 때 유용하다.
'언리얼4 > 일반' 카테고리의 다른 글
| 언리얼에서 퀘스트2로 빌드하기 (Android) (0) | 2021.04.02 |
|---|---|
| InverseTransformDirection (0) | 2021.03.25 |
| bUseControllerDesiredRotation / bOrientRotationToMovement / bUsePawnControlRotation (0) | 2021.03.23 |
| Timeline (0) | 2021.03.20 |
| Collision Sweep & Teleport (1) | 2021.03.08 |