Dota 2 Workshop Tools/Scripting/API/Global.CalcDistanceBetweenEntityOBB: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
||
Line 6: | Line 6: | ||
''' float CalcDistanceBetweenEntityOBB(handle '' | ''' float CalcDistanceBetweenEntityOBB(handle ''handle_1'', handle ''handle_2'') ''' | ||
''Compute the distance between two entity OBB. '' | ''Compute the distance between two entity OBB. A negative return value indicates an input error. A return value of zero indicates that the OBBs are overlapping.'' | ||
Line 14: | Line 14: | ||
;Example | ;Example | ||
<source lang="lua"> | <source lang="lua"> | ||
function CalcDistanceBetweenEntityOBB( handle_1, handle_2 ) end | |||
</source> | </source> | ||
== Parameters == | == Parameters == | ||
Line 23: | Line 23: | ||
|- | |- | ||
| handle | | handle | ||
| | | handle_1 | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| handle | | handle | ||
| | | handle_2 | ||
| No Description Set | | No Description Set | ||
|} | |} | ||
Line 33: | Line 33: | ||
== Returns == | == Returns == | ||
''float'' - | ''float'' - No Description Set | ||
Revision as of 23:05, 18 June 2015

Function Description
float CalcDistanceBetweenEntityOBB(handle handle_1, handle handle_2)
Compute the distance between two entity OBB. A negative return value indicates an input error. A return value of zero indicates that the OBBs are overlapping.
- Example
function CalcDistanceBetweenEntityOBB( handle_1, handle_2 ) end
Parameters
Type | Name | Description |
---|---|---|
handle | handle_1 | No Description Set |
handle | handle_2 | No Description Set |
Returns
float - No Description Set