Garry's Mod Wiki

Revision Difference

Entity:GetModelBounds#548100

<function name="GetModelBounds" parent="Entity" type="classfunc"> <description>Returns the entity's model bounds. This is different than the collision bounds/hull. This is not scaled with <page>Entity:SetModelScale</page>, and will return the model's original, unmodified mins and maxs. This can be used to get world bounds.</description>⤶ <description>Returns the entity's model bounds, not scaled by <page>Entity:SetModelScale</page>.⤶ These bounds are affected by all the animations the model has at compile time, if they go outside of the models' render bounds at any point. ⤶ See <page>Entity:GetModelRenderBounds</page> for just the render bounds of the model.⤶ ⤶ This is different than the collision bounds/hull, which are set via <page>Entity:SetCollisionBounds</page>.⤶ ⤶ </description>⤶ <realm>Shared</realm> <rets> <ret name="" type="Vector">The minimum vector of the bounds</ret> <ret name="" type="Vector">The maximum vector of the bounds</ret> </rets> </function>