Entity.OBBMaxs

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:OBBMaxs( )
Description:
Returns the high corner of an entity's OBB as a local vector. The "max" is the vertex that has the max extents of all axises in it.
Returns: Vector
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.OBBMaxs]Entity.OBBMaxs [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCalculates the height of a given entity (ent).
Used onNewerShared.png
Code
local maxs = ent:OBBMaxs()
local mins = ent:OBBMins()
local height = maxs.Z - mins.Z
OutputN/A


Additional Notes

Orientated Bounding Box with local coordinate setup.

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox