Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/AActor
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include | #include "GameFramework/Actor.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Actor.cpp |
bool ActorLineTraceSingle
(
struct FHitResult & OutHit,
const FVector & Start,
const FVector & End,
ECollisionChannel TraceChannel,
const struct FCollisionQueryParams & Params
) const
Remarks
Trace a ray against the Components of this Actor and return the first blocking hit TRUE if a blocking hit is found
Parameters
| Name | Description |
|---|---|
| OutHit | First blocking hit found |
| Start | Start location of the ray |
| End | End location of the ray |
| TraceChannel | The 'channel' that this ray is in, used to determine which components to hit |
| Params | Additional parameters used for the trace |