PhysObj.GetAngle

From GMod Wiki

Revision as of 15:49, 28 August 2010 by Otger (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax PhysObj:GetAngle( )
Description:
Outputs the angles of the object.
Returns: nil
In Object: Physobj
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=PhysObj.GetAngle]PhysObj.GetAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Example

DescriptionOutputs the angles of the object.
Used onNewerShared.png
Code
 
local phys = self:GetPhysicsObject()
 
if phys:IsValid() then //to be sure that the object is valid
	local phys.Angle = phys.GetAngle()
end
 
OutputObjects angle


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox