Garry's Mod Wiki

Garry's Mod Wiki

  boolean util.IsSphereIntersectingSphere( Vector sphere1Position, number sphere1Radius, Vector sphere2Position, number sphere2Radius )

Description

Performs a sphere-sphere intersection and returns whether there was an intersection or not.

Arguments

1 Vector sphere1Position
Any position of the first sphere.
2 number sphere1Radius
The radius of the first sphere.
3 Vector sphere2Position
Any position of the second sphere.
4 number sphere2Radius
The radius of the second sphere.

Returns

1 boolean
true if there is an intersection, false otherwise.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...