GeometrySegmentIntersectsSphere Method |
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 Vector3. If yes, returns a Vector3 containing the point of intersection and the sphere's normal at the point of intersection.
Namespace: Godot
public static Vector3[] SegmentIntersectsSphere( Vector3 from, Vector3 to, Vector3 spherePosition, float sphereRadius )
[Missing <param name="from"/> documentation for "M:Godot.Geometry.SegmentIntersectsSphere(Godot.Vector3,Godot.Vector3,Godot.Vector3,System.Single)"]
[Missing <param name="to"/> documentation for "M:Godot.Geometry.SegmentIntersectsSphere(Godot.Vector3,Godot.Vector3,Godot.Vector3,System.Single)"]
[Missing <param name="spherePosition"/> documentation for "M:Godot.Geometry.SegmentIntersectsSphere(Godot.Vector3,Godot.Vector3,Godot.Vector3,System.Single)"]
[Missing <param name="sphereRadius"/> documentation for "M:Godot.Geometry.SegmentIntersectsSphere(Godot.Vector3,Godot.Vector3,Godot.Vector3,System.Single)"]
[Missing <returns> documentation for "M:Godot.Geometry.SegmentIntersectsSphere(Godot.Vector3,Godot.Vector3,Godot.Vector3,System.Single)"]