Entity.GetCollisionBounds

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetCollisionBounds( )
Description:
This returns the min and max corners of the entity's bounding box.
Returns: Vector min, Vector max
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetCollisionBounds]Entity.GetCollisionBounds [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGet the min and max corners of the bounding box.
Used onNewerShared.png
Code
local Min,Max = self:GetCollisionBounds()
OutputSets the Min and Max variables to the min and max corners of the bounding box


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox