Garry's Mod Wiki

PhysObj:GetPositionMatrix

  VMatrix 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

1 VMatrix
The position and angle matrix.