Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_RayFunctions
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/ShapeFunctions.h |
| Include | #include "GeometryScript/ShapeFunctions.h" |
Syntax
UCLASS (Meta=(ScriptName="GeometryScript_Ray"))
class UGeometryScriptLibrary_RayFunctions : public UBlueprintFunctionLibrary
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector | B | ||
| FVector bool | bDirectionIsNormalized | ||
| FTransform bool | bInvert | ||
| FBox | Box | ||
| FVector | Direction | ||
| double | Distance | ||
| FVector double double & | Distance1 | ||
| FVector double double double & | Distance2 | ||
| FBox double & | HitDistance | ||
| FPlane double & | HitDistance | ||
| FVectorFVector | LineDirection | ||
| FVector | LineOrigin | ||
| FVectorFVector double FVector double & | LineParameter | ||
| FVectorFVector double FVector double FVector & | LinePoint | ||
| FPlane | Plane | ||
| FVector | Point | ||
| FVectorFVector double & | RayParameter | ||
| FVectorFVector double FVector & | RayPoint | ||
| FVectorFVector | SegEndPoint | ||
| FVectorFVector double FVectorFVector & | SegPoint | ||
| FVector | SegStartPoint | ||
| FVector | SphereCenter | ||
| FVector double | SphereRadius | ||
| FTransform | Transform |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | GetRayStartEnd
(
FRay Ray, |
Get two points along the ray. | |
| static | UPARAM
(
DisplayName |
Create a Ray from two points, placing the Origin at A and the Direction as Normalize(B-A) | |
| static | UPARAM
(
DisplayName |
Create a Ray from an Origin and Direction, with optionally non-normalized Direction | |
| static | UPARAM
(
DisplayName |
Apply the given Transform to the given Ray, or optionally the Transform Inverse, and return the new transformed Ray | |
| static | UPARAM
(
DisplayName |
Get a Point at the given Distance along the Ray (Origin + Distance*Direction) | |
| static | UPARAM
(
DisplayName |
Project the given Point onto the closest point along the Ray, and return the Ray Parameter/Distance at that Point | |
| static | UPARAM
(
DisplayName |
Get the distance from Point to the closest point on the Ray | |
| static | UPARAM
(
DisplayName |
Get the closest point on the Ray to the given Point | |
| static | UPARAM
(
DisplayName |
Check if the Ray intersects a Sphere defined by the SphereCenter and SphereRadius. | |
| static | UPARAM
(
DisplayName |
Find the intersection of a Ray and a Box | |
| static | UPARAM
(
DisplayName |
Find the intersection of a Ray and a Plane | |
| static | UPARAM
(
DisplayName |
Compute the pair of closest points on a 3D Ray and Line. | |
| static | UPARAM
(
DisplayName |
Compute the pair of closest points on a 3D Ray and Line Segment The Line Segment is defined by its two Endpoints. |