- Joined
- Nov 13, 2006
- Messages
- 1,814
problem is every camera system work well till dont have a cliff or something ahead or behind of unit what block the camera (example behind the unit have a cliff then camera will be inside the cliff) or when u go up to mountain then u dont see too much, same if u go down
another problem
call PanCameraToTimedWithZ (GetLocationX(loc),GetLocationY(loc),150+GetUnitFlyHeight(u)+GetLocationZ(loc),0.15)
if i use this then everything ok in most of case but sometimes if unit dont move anymore then camera drop down to group instead stay at 150 height
i posted the screen
first i thought i make every time a unit and remove it for getting the terrain height (Z) and put camera to that heigh but problem that dont work when toward the unit have a mountain, if i create unit toward to unit then stil have problem coz camera could be in wrong place behind.
another problem
call PanCameraToTimedWithZ (GetLocationX(loc),GetLocationY(loc),150+GetUnitFlyHeight(u)+GetLocationZ(loc),0.15)
if i use this then everything ok in most of case but sometimes if unit dont move anymore then camera drop down to group instead stay at 150 height
i posted the screen
first i thought i make every time a unit and remove it for getting the terrain height (Z) and put camera to that heigh but problem that dont work when toward the unit have a mountain, if i create unit toward to unit then stil have problem coz camera could be in wrong place behind.
Attachments
Last edited: