Entity/PhysicsInitMultiConvex

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
(More accurate documentation)
Line 2: Line 2:
 
|Name=PhysicsInitMultiConvex
 
|Name=PhysicsInitMultiConvex
 
|Parent=Entity
 
|Parent=Entity
|Description=Builds the mesh from multiple convex collision meshes.
+
|Description=An advanced version of {{ClassFunction|Entity|PhysicsInitConvex}} which initializes a physics object from multiple convex meshes.
 +
 
 +
This should be used for physics objects with a custom shape which cannot be represented by a single convex mesh.
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
Line 9: Line 11:
 
|type=table
 
|type=table
 
|name=vertices
 
|name=vertices
|desc=A table consisting of tables containing {{Type|Vector}}s.
+
|desc=A table consisting of tables of {{Type|Vector}}s. Each sub-table defines a set of points to be used in the computation of one convex mesh.
 
}}
 
}}

Revision as of 09:26, 8 July 2014

 Entity:PhysicsInitMultiConvex( )

Description

An advanced version of Entity:PhysicsInitConvex which initializes a physics object from multiple convex meshes.

This should be used for physics objects with a custom shape which cannot be represented by a single convex mesh.

Arguments

table vertices

A table consisting of tables of Vectors. Each sub-table defines a set of points to be used in the computation of one convex mesh.
Personal tools
Navigation