Garry's Mod Wiki

PhysObj:GetMeshConvexes

  table PhysObj:GetMeshConvexes()

Description

Returns all convex physics meshes of the object. See Entity:PhysicsInitMultiConvex for more information.

Returns

1 table
Table of MeshVertex structures where each MeshVertex structure is an independent convex mesh and each three vertices represent a triangle. Returns nil if the physics object is a sphere.