ProtoFlux:Ray Sphere Intersection

From Resonite Wiki
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.