FVector3IntersectRay Method

Return the intersection of the caller's ray and face.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 25.2414.4032
C#
public static IntersectionStatusEnum IntersectRay(
	FVector3 rayBase,
	FVector3 rayLengths,
	List<FVector3> faceCoordinates,
	out FVector3 result
)

Parameters

rayBase  FVector3
Starting coordinate of the ray.
rayLengths  FVector3
Lengths in each direction from point A to point B.
faceCoordinates  ListFVector3
Coordinates of the face to test for.
result  FVector3
An output parameter containing the coordinate of the face where intersected by the ray, if found. Otherwise, null.

Return Value

IntersectionStatusEnum
The status of the intersection operation.

Remarks

In this version, the face coordinates can contain a single triangle or a single quad. In the case of a quad, the shape is triangulated and both triangles are tested.

See Also