Garry's Mod Wiki

Revision Difference

Entity:GetBoneMatrix#515724

<function name="GetBoneMatrix" parent="Entity" type="classfunc">⤶ <description>⤶ Returns the matrix (position / rotation transform) of a given bone entity.⤶ ⤶ <bug issue="884">This can return the server's matrix during server lag.</bug>⤶ ⤶ <bug issue="3285">This can return garbage serverside or a 0,0,0 fourth column (represents position) for v49 models.</bug>⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="boneID" type="number">The bone to retrieve matrix of.&#xA;* Bones clientside and serverside will differ</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="VMatrix">The matrix⤶ ⤶ * Some entities don't update animation every frame such as prop_physics and won't have accurate bone matrix.</ret>⤶ </rets>⤶ </function>⤶ ⤶