Garry's Mod Wiki

Entity:GetWorldTransformMatrix

Description

Returns the position and angle of the entity 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.

This returns incorrect results for the angular component (columns 1-3) for the local player clientside.
This will use the local player's EyeAngles in rendering hooks.
Columns 1-3 will be all 0 (angular component) in rendering hooks while paused in single-player.

Returns

1 VMatrix
The position and angle matrix.

Page Links


Special Pages


Wikis

?

Render Time: 45ms

Session 0
DB GetPage 4
Generate Html 10
SaveChanges 16
Render Body 0
Render Sidebar 12