Adjust camera - allfoxwy/UnitXP_SP3 GitHub Wiki
/script local height = UnitXP("cameraHeight", "set", 1.0);
/script local height = UnitXP("cameraHeight", "get");
/script local height = UnitXP("cameraVerticalDisplacement", "set", 1.0);
/script local height = UnitXP("cameraVerticalDisplacement", "get");
/script local height = UnitXP("cameraPitch", "set", 0.1);
/script local height = UnitXP("cameraPitch", "get");
/script local height = UnitXP("cameraHorizontalDisplacement", "set", 1.0);
/script local height = UnitXP("cameraHorizontalDisplacement", "get");
Unlike Classic, Vanilla game's camera is pointing right into the eye of player. However player could be taller if they pick Tauren or Druid bear, player herself/himself might block the camera.
cameraHeight
method would put camera higher by adding a small height. Range from 0 to 5 in float number.
cameraVerticalDisplacement
method is same with cameraHeight
but with a range from -1 to 5 in float number.
cameraPitch
method is somewhat the same with cameraHeight
. However it achieves this by rotating the camera rather than repositioning the camera. While the end result is the same, the camera would behave differently during moving/collision. Some people might like this style. Range from 0 to 0.2 in float number.
cameraHorizontalDisplacement
method would adjust camera in horizontal direction. 0 is the original center on screen. Positive numbers range from 0 to 5 in float number would move the camera towards right. Negative numbers range from -5 to 0 in float number would move the camera towards left.
/run UnitXP("cameraOrganicSmooth", "enable");
/run UnitXP("cameraOrganicSmooth", "disable");
The camera movement animation could be disabled, so that it would reposition/rotate instantly. Note that disabling camera animation could cause motion sickness.