Entity/GetBoneMatrix

From Garry's Mod
Jump to: navigation, search
 Entity:GetBoneMatrix( )

Description

Returns the matrix (position / rotation transform) of a given bone entity.

BUG

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

Issue Tracker: #884

BUG

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

Issue Tracker: #3285

Arguments

number boneID

The bone to retrieve matrix of.

  • Bones clientside and serverside will differ

Returns

VMatrix

The matrix

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