Entity/PhysicsInitSphere

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Warning template, I can understand why this one would be counter intuitive)
m (link text)
Line 5: Line 5:
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
|Name=PhysicsInitSphere
 
|Parent=Entity
 
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 16: Line 14:
 
|type=string
 
|type=string
 
|name=physmat
 
|name=physmat
|desc=Physical Material. From this list: [https://developer.valvesoftware.com/wiki/Material_surface_properties Valve Developer]
+
|desc=Physical Material. From this list: [https://developer.valvesoftware.com/wiki/Material_surface_properties Material surface properties]
 
}}
 
}}

Revision as of 13:55, 7 April 2017

 Entity:PhysicsInitSphere( )

Description

Makes the physics object of the entity a sphere.

WARNING

This function will automatically call Entity:SetSolid( SOLID_BBOX )

Arguments

number radius

The radius of the sphere.

Arguments

string physmat

Physical Material. From this list: Material surface properties
Personal tools
Navigation