- Joined
- Nov 13, 2006
- Messages
- 1,814
how can i convert coodinates to display position without vjass and matrix?
i guess this is the angle if camera not rotated but idk how to get the position (like in dgui)
i guess this is the angle if camera not rotated but idk how to get the position (like in dgui)
JASS:
local real CamTX = GetCameraTargetPositionX()
local real CamTY = GetCameraTargetPositionY()
local real CamTZ = GetCameraTargetPositionZ()
local real CamSX = GetCameraEyePositionX()
local real CamSY = GetCameraEyePositionY()
local real CamSZ = GetCameraEyePositionZ()
local real ang = bj_RADTODEG * Atan2(CamTZ - CamSZ, CamTY - CamSY)