Garry's Mod Wiki

Revision Difference

Entity:SetCollisionBounds#517598

<function name="SetCollisionBounds" parent="Entity" type="classfunc"> <description> Sets the collision bounds for the entity, which are used for triggers ( <page>Entity:SetTrigger</page>, <page>ENTITY:Touch</page> ), determining if rendering is necessary clientside, and collision ( If <page>Entity:SetSolid</page> set as [SOLID_BBOX](/gmod/Enums/SOLID) ). Sets the collision bounds for the entity, which are used for triggers ( <page>Entity:SetTrigger</page>, <page>ENTITY:Touch</page> ), determining if rendering is necessary clientside, and collision ( If <page>Entity:SetSolid</page> set as <page text="SOLID_BBOX">Enums/SOLID</page> ). Input bounds are relative to <page>Entity:GetPos</page>! See also <page>Entity:SetCollisionBoundsWS</page>. </description> <realm>Shared</realm> <args> <arg name="mins" type="Vector">The minimum vector of the bounds. The vector must be smaller than second argument on all axises.</arg> <arg name="maxs" type="Vector">The maximum vector of the bounds. The vector must be bigger than first argument on all axises.</arg> </args> </function>