Entity.OBBMaxs
From GMod Wiki
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.OBBMaxs]Entity.OBBMaxs [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Calculates the height of a given entity (ent). |
|---|---|
| Used on | |
| Code | local maxs = ent:OBBMaxs() local mins = ent:OBBMins() local height = maxs.Z - mins.Z |
| Output | N/A |
Additional Notes
- See the picture to the right for more help understanding the OBB. Keep in mind the coordinates are local - which means the OBB can be rotated or moved around in the world, but the local coordinates will not change.
