VMatrix.GetAngle

From GMod Wiki

Jump to: navigation, search
Function
Syntax VMatrix:GetAngle( )
Where is this used?
Description:
Gathers the Angle of a specific bone.
Returns: nil
Part of Library: VMatrix
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=VMatrix.GetAngle]VMatrix.GetAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrints out bone angle.
Used onNewerClient.png
Code
 
concommand.Add( "printboneangle", function( ply, cmd, args )
	local traceEntity = util.TraceLine( util.GetPlayerTrace( LocalPlayer( ))).Entity
 
	if !traceEntity:IsValid( ) then return end
 
	print( traceEntity:GetBoneMatrix( args[1] ):GetAngle( ))
end )
 
OutputWhen typing that console command into your console, it outputs the angle of a specific bone.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox