Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPrimitiveComponent
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool LineTraceComponent
(
FHitResult& OutHit, |
Trace a ray against just this component. | Components/PrimitiveComponent.h | |
virtual bool LineTraceComponent
(
FHitResult& OutHit, |
Trace a ray against just this component. | Components/PrimitiveComponent.h |
LineTraceComponent(FHitResult &, const FVector, const FVector, const FCollisionQueryParams &)
Description
Trace a ray against just this component.
| Name | LineTraceComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include Path | #include "Components/PrimitiveComponent.h" |
virtual bool LineTraceComponent
(
FHitResult & OutHit,
const FVector Start,
const FVector End,
const FCollisionQueryParams & Params
)
true if a hit is found
Parameters
| Name | Remarks |
|---|---|
| OutHit | Information about hit against this component, if true is returned |
| Start | Start location of the ray |
| End | End location of the ray |
| Params | Additional parameters used for the trace |
LineTraceComponent(FHitResult &, const FVector, const FVector, ECollisionChannel, const struct FCollisionQueryParams &, const struct FCollisionResponseParams &, const struct FCollisionObjectQueryParams &)
Description
Trace a ray against just this component.
| Name | LineTraceComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include Path | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/PrimitiveComponent.cpp |
virtual bool LineTraceComponent
(
FHitResult & OutHit,
const FVector Start,
const FVector End,
ECollisionChannel TraceChannel,
const struct FCollisionQueryParams & Params,
const struct FCollisionResponseParams & ResponseParams,
const struct FCollisionObjectQueryParams & ObjectParams
)
true if a hit is found
Parameters
| Name | Remarks |
|---|---|
| OutHit | Information about hit against this component, if true is returned |
| Start | Start location of the ray |
| End | End location of the ray |
| TraceChannel | The 'channel' that this query is in, used to determine which components to hit |
| Params | Additional parameters used for the trace |
| ResponseParam | ResponseContainer to be used for this trace |
| ObjectQueryParams | List of object types it's looking for |