Garry's Mod Wiki

PhysObj:GetIndex

  number PhysObj:GetIndex()

Description

Returns the index this physics object is on its PhysObj:GetEntity.

Useful for Entity:TranslateBoneToPhysBone.

Returns

1 number
The physics object index on its parent entity.