Garry's Mod Wiki

PhysObj:GetPositionMatrix

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.

Special Pages


Wikis

?

Render Time: 20ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 7