Garry's Mod Wiki

Revision Difference

PhysObj:GetPositionMatrix#510846

<function name="GetPositionMatrix" parent="PhysObj" type="classfunc">⤶ <description>Returns the position and angle of the physics object as a 3x4 matrix (<page>VMatrix</page> is 4x4 so the fourth row goes unused). The first three columns store the angle as a [rotation matrix](https://en.wikipedia.org/wiki/Rotation_matrix), and the fourth column stores the position vector.</description>⤶ <realm>Shared</realm>⤶ <rets>⤶ <ret name="" type="VMatrix">The position and angle matrix.</ret>⤶ </rets>⤶ </function>⤶ ⤶