ProtoFlux:Ray Sphere Intersection

From Resonite Wiki
Revision as of 20:58, 2 July 2024 by AmasterAmaster (talk | contribs) (Created a page for the Ray Sphere Intersection node.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Ray Sphere Intersection
Center
Point
Radius
IsIntersecting
RayOrigin
RayDirection
Geometry 3D

The Ray Sphere Intersection node takes in ray paremeters and sphere parameters, and finds then returns an intersection at a point as well as if it intersected at all.

Inputs

Center (float3)

The center of the sphere.

Radius (float)

The radius of the sphere.

RayOrigin (float3)

The starting point of this ray.

RayDirection (float3)

The direction this ray will aim at.

Outputs

Point (float3)

Returns the sphere intersection value.

IsIntersecting (bool)

Returns if this ray is intersecting this sphere.