Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_RayFunctions
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/ShapeFunctions.h |
| Include | #include "GeometryScript/ShapeFunctions.h" |
Syntax
UCLASS&40;Meta&61;&40;ScriptName&61;"GeometryScript_Ray"&41;&41;
class UGeometryScriptLibrary_RayFunctions : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | GetRayBoxIntersection
(
FRay Ray, |
Check if the Ray intersects a Sphere defined by the SphereCenter and SphereRadius. | |
| FVector | GetRayClosestPoint
(
FRay Ray, |
Get the closest point on the Ray to the given Point | |
| double | GetRayLineClosestPoint
(
FRay Ray, |
Compute the pair of closest points on a 3D Ray and Line. | |
| double | GetRayParameter
(
FRay Ray, |
Project the given Point onto the closest point along the Ray, and return the Ray Parameter/Distance at that Point | |
| bool | GetRayPlaneIntersection
(
FRay Ray, |
Find the intersection of a Ray and a Plane | |
| FVector | GetRayPoint
(
FRay Ray, |
Get a Point at the given Distance along the Ray (Origin + Distance*Direction) | |
| double | GetRayPointDistance
(
FRay Ray, |
Get the distance from Point to the closest point on the Ray | |
| double | GetRaySegmentClosestPoint
(
FRay Ray, |
Compute the pair of closest points on a 3D Ray and Line Segment The Line Segment is defined by its two Endpoints. | |
| bool | GetRaySphereIntersection
(
FRay Ray, |
Check if the Ray intersects a Sphere defined by the SphereCenter and SphereRadius. | |
| void | GetRayStartEnd
(
FRay Ray, |
Get two points along the ray. | |
| FRay | GetTransformedRay
(
FRay Ray, |
Apply the given Transform to the given Ray, or optionally the Transform Inverse, and return the new transformed Ray | |
| FRay | MakeRayFromPointDirection
(
FVector Origin, |
Create a Ray from an Origin and Direction, with optionally non-normalized Direction | |
| FRay | MakeRayFromPoints
(
FVector A, |
Create a Ray from two points, placing the Origin at A and the Direction as Normalize(B-A) |