Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
Description
Find the intersection of the ray defined by RayOrigin and RayDirection with the cylinder defined by CylinderCenter, CylinderAxis, CylinderRadius, and CylinderHeight. Returns intersection success/failure in bOutIntersects and the hit depth parameter along the ray for the first intersection in OutHitDepth.
| Name | GizmoMath::RayCylinderIntersection |
| Type | function |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoMath.h |
| Include Path | #include "BaseGizmos/GizmoMath.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/GizmoMath.cpp |
namespace GizmoMath
{
template<typename RealType>
void GizmoMath::RayCylinderIntersection
(
const FVector & CylinderCenter,
const FVector & CylinderAxis,
RealType CylinderRadius,
RealType CylinderHeight,
const FVector & RayOrigin,
const FVector & RayDirection,
bool & bIntersectsOut,
RealType & OutHitDepth
)
}