Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoMath.h |
| Include | #include "BaseGizmos/GizmoMath.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/GizmoMath.cpp |
namespace GizmoMath
{
void GizmoMath&58;&58;RaySphereIntersection
&40;
const FVector & SphereOrigin,
const float SphereRadius,
const FVector & RayOrigin,
const FVector & RayDirection,
bool & bIntersectsOut,
FVector & SphereIntersectionPointOut
&41;
}
Remarks
Find the intersection of the ray defined by RayOrigin and RayDirection with the sphere defined by SphereOrigin and SphereRadius. Returns intersection success/failure in bIntersectsOut and the intersection point in SphereIntersectionPointOut