HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Z Collision!

03-17-2008, 02:14 AM#1
TheSecretArts
How would one go about detection Z collision ACCURATELY, X and Y collision but Z collision is being troublesome.
Any Ideas?
03-17-2008, 04:22 AM#2
Deaod
native GetUnitFlyHeight takes unit whichUnit returns real + GetUnitX + GetUnitY should do it. If not, dont stomp me to death. That was the research of 2 minutes. the first thing that came to my mind.
03-17-2008, 04:37 AM#3
zen87
Collapse JASS:
globals
    private location L = Location(0,0)
endglobals

function ES_GetUnitZ takes unit u returns real
    call MoveLocation(L,GetUnitX(u),GetUnitY(u))
 return GetLocationZ(L)+GetUnitFlyHeight(u)
endfunction

unit z height used in my effect system, so far so good
03-17-2008, 05:34 AM#4
DioD
async warning...

some spells may cause desync