Garry's Mod Wiki
Description
Makes the physics object of the entity a sphere.
This function will automatically destroy any previous physics objects and do the following:
- Entity:SetSolid(
SOLID_BBOX
) - Entity:SetMoveType(
MOVETYPE_VPHYSICS
)
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
Arguments
2 string physmat = "default"
Physical material from surfaceproperties.txt or added with physenv.AddSurfaceData.
Returns
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 twice a day. Edits and history are not available.
Last Parsed: Loading...