Garry's Mod Wiki

Revision Difference

Entity:SetCollisionBoundsWS#547280

<function name="SetCollisionBoundsWS" 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 <page text="SOLID_BBOX">Enums/SOLID</page> ).⤶ ⤶ Input bounds are in world coordinates!⤶ See also <page>Entity:SetCollisionBounds</page>.⤶ A convenience function that sets the collision bounds for the entity in world space coordinates by transforming given vectors to entity's local space and passing them to <page>Entity:SetCollisionBounds</page>⤶ </description> <realm>Shared</realm> <args> <arg name="vec1" type="Vector">The first vector of the bounds.</arg> <arg name="vec2" type="Vector">The second vector of the bounds.</arg> </args> </function>