Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos > API/Runtime/InteractiveToolsFramework/BaseGizmos/UGizmoElementTorus
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoElementTorus.h |
| Include | #include "BaseGizmos/GizmoElementTorus.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/GizmoElementTorus.cpp |
virtual FInputRayHit LineTrace
&40;
const UGizmoViewContext &42; ViewContext,
const FLineTraceTraversalState & LineTraceState,
const FVector & RayOrigin,
const FVector & RayDirection
&41;
Remarks
LineTrace approximates ray-torus intersection by intersecting the ray with the plane in which the torus lies, then determining a hit point closest to the linear circle defined by torus center and torus outer radius. If the torus lies at a glancing angle, the ray-torus intersection is performed against cylinders approximating the shape of the torus.