Garry's Mod Wiki

cam.GetViewMatrix

  VMatrix cam.GetViewMatrix()

Description

Returns a copy of the view matrix. Also see cam.GetProjectionMatrix.

Will returns Identity matrix in 2D Render context. In this case use cam.Start3D. See Render Hook Order.

Returns

1 VMatrix
The currently active matrix.