Entity.WorldSpaceAABB
From GMod Wiki
Function | |
Syntax | Entity:WorldSpaceAABB( ) |
Description: | |
Returns two vectors representing the minimum extent and maximum extent of the entity's bounding box. | |
Returns: | Vector ,Vector |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.WorldSpaceAABB]Entity.WorldSpaceAABB [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
These are the points this function returns
- The minimum extent contains the lowest X, Y, and Z values of all of the points on the bounding box, and the maximum extent contains the highest X, Y, and Z values of all of the points on the entity's bounding box.
- This is an AABB, or Axis-Aligned Bounding box, which means that each axis of the bounding box is parallel with their corrosponding axis in the world.
- This function returns two values, so make sure you set two values at once as shown in the example.