PhysObj.GetAngle

From GMod Wiki

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