ProtoFlux:RaySphereIntersection

From Resonite Wiki
Revision as of 00:32, 21 August 2025 by YoshBot (talk | contribs) (YoshBot moved page ProtoFlux:Ray Sphere Intersection to ProtoFlux:RaySphereIntersection: Automated: removing spaces from ProtoFlux namespace)
(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.