Entity.OBBMaxs

From GMod Wiki

Revision as of 16:08, 28 August 2010 by Otger (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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