Garry's Mod Wiki

Garry's Mod Wiki

  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 ID to retrieve matrix of, starting at index 0.
  • 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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...