Garry's Mod Wiki

Entity:GetBoneMatrix

VMatrix Entity:GetBoneMatrix( number boneID )

Description

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

Arguments

1 number boneID
The bone to retrieve matrix of.

  • Bones clientside and serverside will differ

Returns

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


Wikis

?

Render Time: 32ms

DB GetPage 2
Generate Html 6
SaveChanges (1) 9
Render Body 0
Render Sidebar 12