Garry's Mod Wiki

PhysObj:GetIndex

  number PhysObj:GetIndex()

Recently Added

This was recently added in version (2024.11.20). It might only be available on the Dev Branch right now.

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.