Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent > API/Runtime/Engine/Components/UPrimitiveComponent/LineTraceComponent
- UPrimitiveComponent::LineTraceComponent()
- UClusterUnionComponent::LineTraceComponent()
- UInstancedStaticMeshComponent::LineTraceComponent()
- USkeletalMeshComponent::LineTraceComponent()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include | #include "Components/PrimitiveComponent.h" |
virtual bool LineTraceComponent
(
FHitResult & OutHit,
const FVector Start,
const FVector End,
const FCollisionQueryParams & Params
)
Remarks
Trace a ray against just this component. true if a hit is found
Parameters
| Name | Description |
|---|---|
| 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 |