Garry's Mod Wiki



  boolean Entity:PhysicsFromMesh( table vertices )


Initializes the physics mesh of the entity from a triangle soup defined by a table of vertices. The resulting mesh is hollow, may contain holes, and always has a volume of 0.

While this is very useful for static geometry such as terrain displacements, it is advised to use Entity:PhysicsInitConvex or Entity:PhysicsInitMultiConvex for moving solid objects instead.

Entity:EnableCustomCollisions needs to be called if you want players to collide with the entity correctly.


1 table vertices
A table consisting of Structures/MeshVertex (only the pos element is taken into account). Every 3 vertices define a triangle in the physics mesh.


1 boolean
Returns true on success, nil otherwise.

Special Pages



Render Time: 26ms

DB GetPage 2
Generate Html 9
SaveChanges (1) 7
Render Body 0
Render Sidebar 6