PhysObj/GetPositionMatrix

From Garry's Mod
Jump to: navigation, search
 PhysObj:GetPositionMatrix( )

Description

Returns the position and angle of the physics object as a 3x4 matrix (VMatrix is 4x4 so the fourth row goes unused). The first three columns store the angle as a rotation matrix, and the fourth column stores the position vector.

Returns

VMatrix

The position and angle matrix.
Personal tools
Navigation