Garry's Mod Wiki

Entity:GetBoneMatrix

VMatrix Entity:GetBoneMatrix( number boneID )

Description

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

This can return the server's matrix during server lag.
This can return garbage serverside or a 0,0,0 fourth column (represents position) for v49 models.

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: 30ms

Session 0
DB GetPage 3
Generate Html 7
SaveChanges 13
Render Body 0
Render Sidebar 5