Garry's Mod Wiki


  boolean Entity:PhysicsInitSphere( number radius, string physmat = "default" )


Makes the physics object of the entity a sphere.

This function will automatically destroy any previous physics objects and do the following:

Clientside physics objects are broken and do not move properly in some cases. Physics objects should only created on the server or you will experience incorrect physgun beam position, prediction issues, and other unexpected behavior.

A workaround is available on the Entity:PhysicsInitConvex page.

Issue Tracker: 5060


1 number radius
The radius of the sphere.
2 string physmat = "default"
Physical material from surfaceproperties.txt or added with physenv.AddSurfaceData.


1 boolean
Returns true on success, false otherwise