Function GeometrySingleton.segmentIntersectsSphere

Checks if the segment (from, to) intersects the sphere that is located at sphere_position and has radius sphere_radius. If no, returns an empty PoolVector3Array. If yes, returns a PoolVector3Array containing the point of intersection and the sphere's normal at the point of intersection.

PoolArray!(godot.core.vector3.Vector3) segmentIntersectsSphere (
  const(Vector3) from,
  const(Vector3) to,
  const(Vector3) sphere_position,
  const(double) sphere_radius
) nothrow @nogc;