Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript > API/Plugins/GeometryScriptingCore/GeometryScript/UGeometryScriptL-_31
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/ShapeFunctions.h |
| Include | #include "GeometryScript/ShapeFunctions.h" |
| Source | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Private/ShapeFunctions.cpp |
static bool GetRayBoxIntersection
&40;
FRay Ray,
FBox Box,
double & HitDistance
&41;
Remarks
Check if the Ray intersects a Sphere defined by the SphereCenter and SphereRadius. true if the ray hits the box, and false otherwise
Parameters
| Name | Description |
|---|---|
| HitDistance | Distance along the ray (Ray Parameter) to first intersection point with the Box |