Entity/TranslateBoneToPhysBone

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Bug)
m (Bug was fixed)
 
Line 3: Line 3:
  
 
See {{ClassFunction|Entity|TranslatePhysBoneToBone}} for reverse function.
 
See {{ClassFunction|Entity|TranslatePhysBoneToBone}} for reverse function.
 
{{Bug|Issue=3714|This does not work on clientside-only entities.}}
 
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes

Latest revision as of 00:15, 8 November 2019

 Entity:TranslateBoneToPhysBone( )

Description

Returns the ID of a PhysObj attached to the given bone. To be used with Entity:GetPhysicsObjectNum.

See Entity:TranslatePhysBoneToBone for reverse function.

Arguments

number boneID

The ID of a bone to look up the "physics root" bone of.

Returns

number

The PhysObj ID of the given bone.

  • -1 if we somehow cannot translate
Personal tools
Navigation