PhysObj.SetDamping

From GMod Wiki

Revision as of 01:42, 24 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax PhysObj:SetDamping( Number linear damping, Number rotation damping )
Description:
Sets the damping of a physics object
Returns: nil
In Object: Physobj
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=PhysObj.SetDamping]PhysObj.SetDamping [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionThis example makes an entity have extremely dampened rotation.
Used onNewerServer.png
Code
local speeddamping = 0
local rotationdamping = 1000
Entity:GetPhysicsObject():SetDamping( speeddamping, rotationdamping )
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox