- Joined
- Apr 6, 2008
- Messages
- 760
I have some problems seting up the camera correct for my map
i have these 2 variables for that
Now the problem is that i want the camera to have the same height allways even if the terrain change(the same "height" as the unit have + Zoffset). I have a problem when the unit walking on flying platforms the camera go thru the platforms.
Edit: added 2 screenshots of the problem
Edit 2: Another problem is that
i have these 2 variables for that
JASS:
real Zoffset = (GetLocationZ(Data.Loc)*zOffsetMultiplyer+GetUnitFlyHeight(Data[index].LockedTo)
real CameraEyeZ = GetCameraEyePositionZ()
Now the problem is that i want the camera to have the same height allways even if the terrain change(the same "height" as the unit have + Zoffset). I have a problem when the unit walking on flying platforms the camera go thru the platforms.
Edit: added 2 screenshots of the problem
Edit 2: Another problem is that
GetLocationZ()
return the height on the "platforms" and no on the acctual ground which is the problem in this case