Revision Difference
Player:GetHull#562809
<function name="GetHull" parent="Player" type="classfunc">
<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>.
Retrieves the minimum and maximum <page text="Vectors">Vector</page> of the [Axis-Aligned Bounding Box (AABB)](https://en.wikipedia.org/wiki/Minimum_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="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 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> With one Player on the Server:
```
-16.000000 -16.000000 0.000000
16.000000 16.000000 72.000000
```
</output>
</example>