Garry's Mod Wiki

Revision Difference

Player:GetHull#562807

<function name="GetHull" parent="Player" type="classfunc"> <description>Returns the bounding box used for the players internal physics <page text="hull traces">util.TraceHull</page>.</description>⤶ <description>⤶ Retrieves the minimum and maximum <page text="Vectors">Vector</page> of the bounding box used for the <page text="Player's">Player</page> physics and movement <page text="Hull Traces">util.TraceHull</page>.⤶ ⤶ See also: <page>Player:SetHull</page>, <page>Player:SetHullDuck</page>, <page>Player:GetHullDuck</page>⤶ </description>⤶ <realm>Shared</realm> <rets> <ret name="" type="Vector">The hull mins, the lowest corner.</ret>⤶ <ret name="" type="Vector">The hull maxs, the highest corner, opposite of mins.</ret>⤶ <ret name="mins" type="Vector">⤶ The hull mins, the lowest corner of the Player's bounding box. </ret>⤶ <ret name="maxs" type="Vector">⤶ The hull maxs, the highest corner of the Player's bounding box, opposite of the mins.⤶ </ret>⤶ </rets> </function> <example> <description>Prints bases' size of the hull of all players.</description>⤶ <description>⤶ Prints the mins and maxs of all Players.⤶ </description>⤶ <code> for _, ply in ipairs( player.GetAll() ) do local mins, maxs = ply:GetHull() print(mins) print(maxs) end </code> <output>⤶ <output> With one Player on the Server:⤶ ``` -16.000000 -16.000000 0.000000 16.000000 16.000000 72.000000 ``` </output> </example>