Enums/SOLID

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(SOLID_OBB_YAW doesnt do anything, tested it on multiple entites and models)
Line 10: Line 10:
 
{{EnumField|SOLID_VPHYSICS|6|Uses the collision mesh of the entities model}}
 
{{EnumField|SOLID_VPHYSICS|6|Uses the collision mesh of the entities model}}
 
}}
 
}}
 +
'''Note:''' SOLID_OBB_YAW seem to be broken.

Revision as of 13:55, 21 July 2015

For use with Entity:SetSolid and Entity:GetSolid.

Warning! Decimal values are for reference only! The actual value may be different between two Garry's Mod versions.
Name Decimal Description
SOLID_NONE 0 Does not collide with anything
SOLID_BSP 1
SOLID_BBOX 2 Uses the entity's axis-aligned bounding box for collisions
SOLID_OBB 3 Uses the entity's object-aligned bounding box for collisions
SOLID_OBB_YAW 4 Same as SOLID_OBB but restricts orientation to the Z-axis
SOLID_CUSTOM 5
SOLID_VPHYSICS 6 Uses the collision mesh of the entities model

Note: SOLID_OBB_YAW seem to be broken.

Personal tools
Navigation