You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

sphere_volume

Returns the volume of a sphere of a given radius.

sphere_volume(radius)
Returns the volume of a sphere of a given radius.
COPY/// sphere_volume(radius)
//
//  Returns the volume of a sphere of a given radius.
//
//      radius      radius of sphere
//
///GMLscripts.com/license
{
    return (4/3 * pi * argument0 * argument0 * argument0);
}

Contributors: GameGoblin

GitHub: View · Commits · Blame · Raw