Garry's Mod Wiki

Revision Difference

Entity:WorldSpaceAABB#514599

<function name="WorldSpaceAABB" parent="Entity" type="classfunc">⤶ <description>Returns two vectors representing the minimum and maximum extent of the entity's bounding box.</description>⤶ <realm>Shared</realm>⤶ <rets>⤶ <ret name="" type="Vector">The minimum vector for the entity's bounding box.</ret>⤶ <ret name="" type="Vector">The maximum vector for the entity's bounding box.</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Prints Entity(1)'s maximum bounding box vector.</description>⤶ <code>⤶ local min,max = Entity(1):WorldSpaceAABB()⤶ print(max)⤶ </code>⤶ <output>-496.828125 11730.426758 5189.393066</output>⤶ ⤶ </example>