Garry's Mod Wiki


VMatrix Entity:GetBoneMatrix( number boneID )


Returns the transformation matrix of a given bone on the entity's model. The matrix contains the transformation used to position the bone in the world. It is not relative to the parent bone.

This is equivalent to constructing a VMatrix using Entity:GetBonePosition.

This can return the server's matrix during server lag.

Issue Tracker: 884
This can return garbage serverside or a 0,0,0 fourth column (represents position) for v49 models.

Issue Tracker: 3285


1 number boneID
The bone to retrieve matrix of.

  • Bones clientside and serverside will differ


1 VMatrix
The matrix

  • Some entities don't update animation every frame such as prop_physics and won't have accurate bone matrix.

Page Links

Special Pages



Render Time: 75ms

DB GetPage 45
Generate Html 6
SaveChanges (1) 15
Render Body 0
Render Sidebar 6