Garry's Mod Wiki

Entity:GetParentWorldTransformMatrix

Description

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

If the entity has no move parent, an identity matrix will be returned. If the entity is parented to attachment 0 or the parent isn't a BaseAnimating entity, the equivalent of <pre class="inline">Entity:GetMoveParent():GetWorldTransformMatrix()</pre> will be returned.

Page Links


Special Pages


Wikis

?

Render Time: 31ms

Session 0
DB GetPage 3
Generate Html 5
SaveChanges 8
Render Body 0
Render Sidebar 12