PhysObj.EnableGravity
From GMod Wiki
| Function | |
| Syntax | PhysObj:EnableGravity( Boolean gravity ) | 
| Description: | |
| Enables or disables the gravity. | |
| Returns: | nil | 
| In Object: | Physobj | 
| Realm: |  | 
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=PhysObj.EnableGravity]PhysObj.EnableGravity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
	
Examples
| Description | Disables gravity on a ragdoll. | 
|---|---|
| Used on |  | 
| Code | local bones = ragdoll:GetPhysicsObjectCount() for i=0,bones-1 do ragdoll:GetPhysicsObjectNum(i):EnableGravity(false) end | 
| Output | N/A | 
 
			
			