Dota 2 Workshop Tools/Scripting/API/Global.CalcDistanceBetweenEntityOBB: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Dota_Lebot push: Updated Page)
 
(Dota_Lebot push: Updated Page)
Line 6: Line 6:




''' float CalcDistanceBetweenEntityOBB(handle ''entity'', handle ''otherEntity'') '''
''' 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">
--some code here
function CalcDistanceBetweenEntityOBB( handle_1, handle_2 ) end
</source>
</source>
== Parameters ==
== Parameters ==
Line 23: Line 23:
|-
|-
| handle
| handle
| entity
| handle_1
| No Description Set
| No Description Set
|-
|-
| handle
| handle
| otherEntity
| handle_2
| No Description Set
| No Description Set
|}
|}
Line 33: Line 33:
== Returns ==
== Returns ==


''float'' - A negative return value indicates an input error.
''float'' - No Description Set
A return value of zero indicates that the OBBs are overlapping

Revision as of 23:05, 18 June 2015

Note.pngNote: This page is automatically generated. Any changes may be overwritten

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